Skip to content

Commit

Permalink
Merge pull request #197 from smartprocure/feature/add-test-script
Browse files Browse the repository at this point in the history
Add test script to every package
  • Loading branch information
stellarhoof authored Feb 6, 2024
2 parents dac1b32 + 9926207 commit b494943
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"foreach": "yarn workspaces foreach --no-private --parallel --verbose",
"version": "yarn changeset version && yarn install --mode=update-lockfile",
"publish": "yarn foreach npm publish --tolerate-republish",
"postinstall": "yarn foreach run prepack"
"postinstall": "yarn foreach run prepack",
"test": "NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules yarn jest ."
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"dist"
],
"scripts": {
"prepack": "node ../../scripts/esbuild.js --platform=browser"
"prepack": "node ../../scripts/esbuild.js --platform=browser",
"test": "NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules yarn run -T jest ."
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"dist"
],
"scripts": {
"prepack": "node ../../scripts/esbuild.js --platform=node"
"prepack": "node ../../scripts/esbuild.js --platform=node",
"test": "NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules yarn run -T jest ."
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/provider-elasticsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"dist"
],
"scripts": {
"prepack": "node ../../scripts/esbuild.js --platform=node"
"prepack": "node ../../scripts/esbuild.js --platform=node",
"test": "NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules yarn run -T jest ."
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/provider-mongo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"dist"
],
"scripts": {
"prepack": "node ../../scripts/esbuild.js --platform=node"
"prepack": "node ../../scripts/esbuild.js --platform=node",
"test": "NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules yarn run -T jest ."
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"dist"
],
"scripts": {
"prepack": "node ../../scripts/esbuild.js --platform=node"
"prepack": "node ../../scripts/esbuild.js --platform=node",
"test": "NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules yarn run -T jest ."
},
"repository": {
"type": "git",
Expand Down

0 comments on commit b494943

Please sign in to comment.