Skip to content

Commit

Permalink
update test unit jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtil committed May 13, 2020
1 parent 90585dd commit 04be09b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module.exports = {
rootDir: "unitTest",
moduleFileExtensions: [
"js",
"vue"
],
transform: {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
"^.+\\.js$": "<rootDir>/../node_modules/babel-jest",
".*\\.(vue)$": "<rootDir>/../node_modules/vue-jest"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "dist/windowmanager.esm.js",
"unpkg": "dist/windowmanager.js",
"scripts": {
"test:unit": "jest ./unitTest",
"test:unit": "jest",
"test:e2e": "npm run build:prod && start-server-and-test 'npm run serve -- -p 3030' 3030 cy:run",
"serve": "http-server -c-1",
"cy:run": "cypress run",
Expand Down

0 comments on commit 04be09b

Please sign in to comment.