## What Harmonize and clean-up yarn test commands convention. ## Why Current strategy to filter integration tests from unit tests was cumbersome to maintain. Also, some packages declared `test:unit` which ended up being an alias to `test`. ## How * Remove all occurrences of `test:unit` * Rename all `test` commands under `/integration-tests/**/package.json` to `test:integration` * In the root `package.json`, rewrite `test:integration` command to run `turbo run test:integration` * In the root `package.json`, remove filtering on the `test` command * Introduce a new `test:integration` task in the Turborepo config.
24 lines
595 B
JSON
24 lines
595 B
JSON
{
|
|
"name": "integration-tests-repositories",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"scripts": {
|
|
"test:integration": "jest --silent=false --runInBand --bail --detectOpenHandles --forceExit"
|
|
},
|
|
"dependencies": {
|
|
"@medusajs/medusa": "1.8.0-rc.6",
|
|
"medusa-interfaces": "1.3.7-rc.0",
|
|
"typeorm": "^0.3.11"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.12.10",
|
|
"@babel/core": "^7.12.10",
|
|
"@babel/node": "^7.12.10",
|
|
"babel-preset-medusa-package": "*",
|
|
"jest": "^26.6.3",
|
|
"jest-environment-node": "26.6.2"
|
|
}
|
|
}
|