diff --git a/unit-tests/polyfills/mainthread-helper.ts b/unit-tests/polyfills/mainthread-helper.ts new file mode 100644 index 000000000..e69de29bb diff --git a/unit-tests/runtime.ts b/unit-tests/runtime.ts index 118271758..4835c8ca8 100644 --- a/unit-tests/runtime.ts +++ b/unit-tests/runtime.ts @@ -8,12 +8,13 @@ const tnsCoreModules = path.resolve(__dirname, "..", "tns-core-modules"); moduleAlias.addPath(tnsCoreModules); moduleAlias.addAliases({ // NOTE: require("tns-core-modules/platform") with these aliases will work in node but fail in Angular AoT - // "tns-core-modules/platform": path.resolve(__dirname, "polyfills", "platform"), - // "tns-core-modules/file-system/file-system-access": path.resolve(__dirname, "polyfills", "file-system-access"), - // "tns-core-modules/utils/utils": path.resolve(tnsCoreModules, "utils/utils-common"), - // "tns-core-modules/color": path.resolve(tnsCoreModules, "color/color-common"), - // "tns-core-modules/ui/styling/font": path.resolve(tnsCoreModules, "ui/styling/font-common"), - // "tns-core-modules/ui/styling/background": path.resolve(tnsCoreModules, "ui/styling/background-common"), + "tns-core-modules/platform": path.resolve(__dirname, "polyfills", "platform"), + "tns-core-modules/file-system/file-system-access": path.resolve(__dirname, "polyfills", "file-system-access"), + "tns-core-modules/utils/utils": path.resolve(tnsCoreModules, "utils/utils-common"), + "./mainthread-helper": path.resolve(__dirname, "polyfills", "mainthread-helper"), + "tns-core-modules/color": path.resolve(tnsCoreModules, "color/color-common"), + "tns-core-modules/ui/styling/font": path.resolve(tnsCoreModules, "ui/styling/font-common"), + "tns-core-modules/ui/styling/background": path.resolve(tnsCoreModules, "ui/styling/background-common"), "tns-core-modules": tnsCoreModules, "~": __dirname