Skip to content

Commit

Permalink
(test): always run build before running tests (#493)
Browse files Browse the repository at this point in the history
- personally, I often forget to yarn build before yarn test and that
  means I'm testing stale changes
  - would be good to have a way to run jest --watch, but that would
    optimally require programmatic access to the CLI engine, which
    needs some refactoring
  • Loading branch information
agilgur5 authored Feb 5, 2020
1 parent b3632fe commit df22fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build": "tsc -p tsconfig.json",
"lint": "yarn build && yarn lint:post-build",
"lint:post-build": "node dist/index.js lint src test --ignore-pattern 'test/tests/lint'",
"test": "jest --config ./test/jest.config.json",
"test": "yarn build && jest --config ./test/jest.config.json",
"watch": "chokidar \"./package.json\" \"./src/**/*.ts\" \"node_modules\\@jaredpalmer\\rollup-plugin-preserve-shebang\\dist\\index.js\" -c \"yarn build && echo Success\"",
"start": "tsc -p tsconfig.json --watch"
},
Expand Down

0 comments on commit df22fe3

Please sign in to comment.