Skip to content

Commit

Permalink
chore: restructure test targets in package json
Browse files Browse the repository at this point in the history
  • Loading branch information
orsagie committed Dec 4, 2019
1 parent cfaa1b3 commit 922fafd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ test_script:
- npm i -g npm@^3.10.10
- npm --version
- npm run build
- npm run tap
- npm run test-windows
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@
"find-circular": "npm run build && madge --circular ./dist",
"format": "prettier --write '{src,test,scripts}/**/*.{js,ts}'",
"prepare": "npm run build",
"test-common": "npm run check-tests && npm run build && npm run lint && node --require ts-node/register src/cli test --org=snyk",
"tap": "tap test/*.test.* test/acceptance/**/*.test.* test/system/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register",
"test": "npm run test-common && npm run tap",
"test:common": "npm run check-tests && npm run build && npm run lint && node --require ts-node/register src/cli test --org=snyk",
"test:acceptance": "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:test": "tap test/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register",
"test": "npm run test:common && npm run test:acceptance && npm run test:system && npm run test:test",
"test-windows": "npm run test:acceptance && npm run test:system && npm run test:test",
"lint": "run-p --aggregate-output lint:*",
"lint:js": "eslint --color --cache 'src/**/*.{js,ts}'",
"lint:formatting": "prettier --check '{src,test,scripts}/**/*.{js,ts}'",
Expand Down

0 comments on commit 922fafd

Please sign in to comment.