Skip to content

Commit b551897

Browse files
committed
move jest scripts to root
1 parent d712f0f commit b551897

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

package-scripts.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
scripts:
2+
test:
3+
default:
4+
description: Run all JS tests
5+
script: jest
6+
ci:
7+
description: Run all JS tests in CI mode
8+
# https://circleci.com/docs/collect-test-data/#jest
9+
script: jest --ci --runInBand --reporters=default --reporters=jest-junit
10+
debug:
11+
description: Debug all JS tests
12+
script: ndb jest --runInBand
13+
check:
14+
description: Run all checks
15+
script: nps lint && nps format.listDifferent && nps test && nps check-typescript
16+
check-typescript:
17+
description: Check for TypeScript errors
18+
script: nps "build --noEmit" && tsc --project ../packages/react-on-rails-pro-node-renderer/tests
19+
220
lint:
321
description: Run all linters (eslint, tsc)
422
script: nps eslint

react_on_rails_pro/package-scripts.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
11
scripts:
2-
test:
3-
default:
4-
description: Run all JS tests
5-
script: jest
6-
ci:
7-
description: Run all JS tests in CI mode
8-
# https://circleci.com/docs/collect-test-data/#jest
9-
script: jest --ci --runInBand --reporters=default --reporters=jest-junit
10-
debug:
11-
description: Debug all JS tests
12-
script: ndb jest --runInBand
13-
check:
14-
description: Run all checks
15-
script: nps lint && nps format.listDifferent && nps test && nps check-typescript
16-
check-typescript:
17-
description: Check for TypeScript errors
18-
script: nps "build --noEmit" && tsc --project ../packages/react-on-rails-pro-node-renderer/tests && cd spec/dummy && yarn run tsc -p ./tsconfig.json --noEmit
192
fix:
203
description: Run all code fixes before committing
214
script: nps eslint.fix && nps format

0 commit comments

Comments
 (0)