## 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.
30 lines
860 B
JSON
30 lines
860 B
JSON
{
|
|
"name": "integration-tests-plugins",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"scripts": {
|
|
"test:integration": "jest --silent=false --runInBand --bail --detectOpenHandles --forceExit",
|
|
"build": "babel src -d dist --extensions \".ts,.js\""
|
|
},
|
|
"dependencies": {
|
|
"@medusajs/cache-inmemory": "1.8.0-rc.3",
|
|
"@medusajs/event-bus-local": "1.8.0-rc.4",
|
|
"@medusajs/medusa": "1.8.0-rc.6",
|
|
"faker": "^5.5.3",
|
|
"medusa-fulfillment-webshipper": "1.3.8-rc.1",
|
|
"medusa-interfaces": "1.3.7-rc.0",
|
|
"medusa-plugin-sendgrid": "1.3.8-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"
|
|
}
|
|
}
|