Skip to content

Broken files pattern in karma config #4178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
prinzt opened this issue Nov 28, 2018 · 1 comment
Closed

Broken files pattern in karma config #4178

prinzt opened this issue Nov 28, 2018 · 1 comment

Comments

@prinzt
Copy link

prinzt commented Nov 28, 2018

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)

@Fatme
Copy link
Contributor

Fatme commented Nov 28, 2018

@prinzt,

Thank you for reporting this issue and for your detailed description!

It seems the problem is reproducible only on windows os. We've already introduced a PR fixing the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants