-
-
Notifications
You must be signed in to change notification settings - Fork 198
Closed
Description
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: 5.0.1
- Cross-platform modules: 4.2.1
- Android Runtime: 4.2.0
- iOS Runtime: 4.2.0
- Plugin(s):
"dependencies": {
"@vue/devtools": "5.0.0-beta.3",
"nativescript-socket.io": "^0.9.0",
"nativescript-theme-core": "^1.0.4",
"nativescript-toast": "^1.4.6",
"nativescript-ui-sidedrawer": "^4.3.0",
"nativescript-unit-test-runner": "^0.3.4",
"nativescript-vue": "^2.0.0",
"nativescript-vue-devtools": "^1.0.0",
"tns-core-modules": "^4.2.0",
"vuex": "^3.0.1"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@vue/cli-plugin-eslint": "^3.1.4",
"@vue/eslint-config-prettier": "^4.0.0",
"babel-loader": "^8.0.2",
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"chai": "4.2.0",
"clean-webpack-plugin": "^0.1.19",
"copy-webpack-plugin": "^4.5.2",
"css-loader": "^1.0.0",
"karma": "2.0.2",
"karma-chai": "0.1.0",
"karma-mocha": "1.3.0",
"karma-nativescript-launcher": "0.4.0",
"lazy": "1.0.11",
"mocha": "5.2.0",
"nativescript-dev-webpack": "^0.18.0",
"nativescript-vue-template-compiler": "^2.0.0",
"nativescript-worker-loader": "~0.9.0",
"node-sass": "^4.9.2",
"sass-loader": "^7.1.0",
"terser-webpack-plugin": "^1.1.0",
"vue-loader": "^15.2.6",
"webpack": "^4.16.4",
"webpack-bundle-analyzer": "~2.13.1",
"webpack-cli": "^3.1.0"
}
OS is Win10
Describe the bug
tns test android and tns test ios fails to complete
To Reproduce
$ npm install -g @vue/cli @vue/cli-init
$ vue init nativescript-vue/vue-cli-template test-project
$ cd test-project
$ tns test init
select Mocha
$ tns test android
Expected behavior
Example test is executed
Solution
The initial generated files pattern ["app\tests/**/*.js"] is broken in karma.config.js .
Should be ["app/tests/**/*.js"]
After fixing this, tests are running (even in watch mode)