Skip to content

Commit

Permalink
chore: avoid running package tests in root tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahed Ahmed committed Mar 5, 2021
1 parent 83efc7d commit 1b2c741
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"test:acceptance": "tap test/acceptance/**/*.test.* test/acceptance/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register",
"test:acceptance-windows": "tap test/acceptance/**/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register",
"test:system": "tap test/system/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register",
"test:jest": "jest --runInBand test/*",
"test:packages-unit": "jest \"packages\/(.*)\/test\/unit\/((.*)\/)*.*\\.spec.ts\"",
"test:packages-acceptance": "jest \"packages\/(.*)\/test\/acceptance\/((.*)\/)*.*\\.spec.ts\"",
"test:jest": "jest --runInBand \"\/test\/[^/]+\\.spec\\.ts\"",
"test:packages-unit": "jest \"\/packages\/(.+)\/test\/unit\/((.+)\/)*[^/]+\\.spec\\.ts\"",
"test:packages-acceptance": "jest \"\/packages\/(.+)\/test\/acceptance\/((.+)\/)*[^/]+\\.spec\\.ts\"",
"test:test": "tap test/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register",
"test": "npm run test:acceptance && npm run test:system && npm run test:test && npm run test:jest && test:packages-unit && test:packages-acceptance",
"test-windows": "npm run test:acceptance-windows && npm run test:system && npm run test:test && npm run test:jest",
Expand Down
4 changes: 2 additions & 2 deletions packages/snyk-protect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"scripts": {
"build": "tsc",
"test": "npm run test:unit && npm run test:acceptance",
"test:unit": "jest \"test\/unit\/((.*)\/)*.*\\.spec.ts\"",
"test:acceptance": "jest \"test\/acceptance\/((.*)\/)*.*\\.spec.ts\"",
"test:unit": "jest \"\/test\/unit\/((.+)\/)*[^/]+\\.spec\\.ts\"",
"test:acceptance": "jest \"\/test\/acceptance\/((.+)\/)*[^/]+\\.spec\\.ts\"",
"format": "prettier --write '{src,test,scripts}/**/*.{js,ts}'"
},
"keywords": [
Expand Down

0 comments on commit 1b2c741

Please sign in to comment.