Skip to content

Commit

Permalink
fix: Run test of each package in their own jest environment
Browse files Browse the repository at this point in the history
cozy-clisk needs a jsdom environment and cannot be run with the same
jest environment as other tests

Now we run yarn lerna run test and the test script is run for each package
  • Loading branch information
doubleface authored and doubleface committed Feb 6, 2023
1 parent 9448ba5 commit c049ddc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,7 +23,7 @@
"publish": "lerna publish",
"bootstrap": "lerna bootstrap",
"lint": "eslint .",
"test": "cross-env LOG_LEVEL=info jest"
"test": "yarn lerna run test"
},
"jest": {
"testPathIgnorePatterns": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cozy-konnector-build/package.json
Expand Up @@ -10,7 +10,7 @@
"license": "MIT",
"homepage": "https://github.com/cozy/cozy-konnector-libs#readme",
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
"test": "exit 0"
},
"bugs": {
"url": "https://github.com/konnectors/libs/issues"
Expand Down
3 changes: 3 additions & 0 deletions packages/renovate-config-cozy-konnector/package.json
Expand Up @@ -31,5 +31,8 @@
}
]
}
},
"scripts": {
"test": "exit 0"
}
}

0 comments on commit c049ddc

Please sign in to comment.