Skip to content

Commit f9d94ea

Browse files
Merge pull request #7228 from NativeScript/svetoslavtsenov/fix-unit-tests
tests: fix require mainthread-module
2 parents cf533a7 + 7061310 commit f9d94ea

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

unit-tests/polyfills/mainthread-helper.ts

Whitespace-only changes.

unit-tests/runtime.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ const tnsCoreModules = path.resolve(__dirname, "..", "tns-core-modules");
88
moduleAlias.addPath(tnsCoreModules);
99
moduleAlias.addAliases({
1010
// NOTE: require("tns-core-modules/platform") with these aliases will work in node but fail in Angular AoT
11-
// "tns-core-modules/platform": path.resolve(__dirname, "polyfills", "platform"),
12-
// "tns-core-modules/file-system/file-system-access": path.resolve(__dirname, "polyfills", "file-system-access"),
13-
// "tns-core-modules/utils/utils": path.resolve(tnsCoreModules, "utils/utils-common"),
14-
// "tns-core-modules/color": path.resolve(tnsCoreModules, "color/color-common"),
15-
// "tns-core-modules/ui/styling/font": path.resolve(tnsCoreModules, "ui/styling/font-common"),
16-
// "tns-core-modules/ui/styling/background": path.resolve(tnsCoreModules, "ui/styling/background-common"),
11+
"tns-core-modules/platform": path.resolve(__dirname, "polyfills", "platform"),
12+
"tns-core-modules/file-system/file-system-access": path.resolve(__dirname, "polyfills", "file-system-access"),
13+
"tns-core-modules/utils/utils": path.resolve(tnsCoreModules, "utils/utils-common"),
14+
"./mainthread-helper": path.resolve(__dirname, "polyfills", "mainthread-helper"),
15+
"tns-core-modules/color": path.resolve(tnsCoreModules, "color/color-common"),
16+
"tns-core-modules/ui/styling/font": path.resolve(tnsCoreModules, "ui/styling/font-common"),
17+
"tns-core-modules/ui/styling/background": path.resolve(tnsCoreModules, "ui/styling/background-common"),
1718

1819
"tns-core-modules": tnsCoreModules,
1920
"~": __dirname

0 commit comments

Comments
 (0)