Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 7d734d8

Browse files
committed
fix: fix app.css file path on windows machines
Currently `tns test` command on windows throws the following error: ``` ERROR in ./app.js Module not found: Error: Can't resolve '.. ode_modules ativescript-unit-test-runnerapp.css' in 'C:\Jenkins\workspace\master-cli-test-windows\TestApp\app' @ ./app.js 12:93-157 Webpack compilation complete. { Error: Executing webpack failed with exit code 2. at DevicesService.<anonymous> (C:\Jenkins\workspace\master-cli-test-windows\node_modules\nativescript\lib\common\mobile\mobile-core\devices-service.js:368:38) at Generator.throw (<anonymous>) at rejected (C:\Jenkins\workspace\master-cli-test-windows\node_modules\nativescript\lib\common\mobile\mobile-core\devices-service.js:11:65) at process._tickCallback (internal/process/next_tick.js:68:7) allErrors: [ { Error: Executing webpack failed with exit code 2. at ChildProcess.childProcess.on (C:\Jenkins\workspace\master-cli-test-windows\node_modules\nativescript\lib\services\webpack\webpack-compiler-service.js:107:39) at ChildProcess.emit (events.js:189:13) at maybeClose (internal/child_process.js:970:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) code: 2, deviceIdentifier: 'emulator-5562' ```
1 parent b77ecff commit 7d734d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎unit-testing-config-loader.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = function ({ appFullPath, projectRoot, angular, rootPagesRegExp
66
const testFilesRegExp = /tests\/.*\.(ts|js)/;
77
const runnerFullPath = join(projectRoot, "node_modules", "nativescript-unit-test-runner");
88
const runnerRelativePath = convertSlashesInPath(relative(appFullPath, runnerFullPath));
9-
const appCssFilePath = join(runnerRelativePath, "app.css");
9+
const appCssFilePath = convertSlashesInPath(join(runnerRelativePath, "app.css"));
1010
let source = `
1111
require("tns-core-modules/bundle-entry-points");
1212
const runnerContext = require.context("${runnerRelativePath}", true, ${rootPagesRegExp});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /