"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// tslint:disable:ordered-imports no-console
const TestRunner_1 = require("@web-atoms/unit-test/dist/TestRunner");
// tslint:disable-next-line:no-var-requires
const { statSync, readdirSync } = require("fs");
// tslint:disable-next-line:no-var-requires
const path = require("path");
// import "./tests/AtomClassTest";
// import "./tests/AppTest";
// import "./tests/core/ColorTests";
// import "./tests/core/AtomBinderTest";
// import "./tests/core/StringHelperTests";
// import "./tests/core/PropertyBinderTest";
// import "./tests/services/JsonServiceTest";
// import "./tests/web/window/WindowTest";
function loadScripts(start) {
    for (const item of readdirSync(start)) {
        const file = `${start}/${item}`;
        // const file = item;
        const s = statSync(file);
        if (s.isDirectory()) {
            loadScripts(file);
            continue;
        }
        if (file.endsWith(".js")) {
            const md = file.substr(0, file.length - 3);
            require("." + md);
        }
    }
}
loadScripts("./dist/tests");
const instance = TestRunner_1.default.instance;
instance.run().then(() => {
    process.exit();
}).catch((e) => {
    console.error(e.message);
    process.abort();
});
//# sourceMappingURL=test.js.map