Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 6.1.x
- Cross-platform modules:
- Android Runtime:
- iOS Runtime:
- Plugin(s):
Describe the bug
Currently tns test command throws the following error in case when source code is not in src directory:
10 10 2019 11:34:38.105:ERROR [config]: Error in config file!
Error: The specified path to app directory /Users/havaluova/Work/sample-Groceries/src does not exist. Unable to find entry module.
at verifyEntryModuleDirectory (/Users/havaluova/Work/sample-Groceries/node_modules/nativescript-dev-webpack/index.js:163:15)
at Object.exports.getEntryModule (/Users/havaluova/Work/sample-Groceries/node_modules/nativescript-dev-webpack/index.js:29:5)
at module.exports.env (/Users/havaluova/Work/sample-Groceries/webpack.config.js:60:38)
at setWebpack (/Users/havaluova/Work/sample-Groceries/karma.conf.js:102:50)
at module.exports (/Users/havaluova/Work/sample-Groceries/karma.conf.js:77:3)
at Object.parseConfig (/Users/havaluova/Work/sample-Groceries/node_modules/karma/lib/config.js:393:5)
at new Server (/Users/havaluova/Work/sample-Groceries/node_modules/karma/lib/server.js:66:24)
at process.on (/Users/havaluova/Work/nativescript-cli/lib/services/karma-execution.js:6:160)
at process.emit (events.js:182:13)
at emit (internal/child_process.js:812:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Test run failed.
To Reproduce
There are 2 options to reproduce the issue:
Option 1:
- Clone
https://github.com/NativeScript/sample-Groceries
npm i && tns test ios
Option 2:
- Create new angular project
- Rename
src to src1
- Change
appPath to src1 inside nsconfig.json
tns test ios
Expected behavior
The unit tests should be successfully executed.
Environment
Provide version numbers for the following components (information can be retrieved by running
tns infoin your project folder or by inspecting thepackage.jsonof the project):Describe the bug
Currently
tns testcommand throws the following error in case when source code is not insrcdirectory:To Reproduce
There are 2 options to reproduce the issue:
Option 1:
https://github.com/NativeScript/sample-Groceriesnpm i&&tns test iosOption 2:
srctosrc1appPathtosrc1insidensconfig.jsontns test iosExpected behavior
The unit tests should be successfully executed.