Skip to content

Commit df22fe3

Browse files
authored
(test): always run build before running tests (#493)
- 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
1 parent b3632fe commit df22fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build": "tsc -p tsconfig.json",
2626
"lint": "yarn build && yarn lint:post-build",
2727
"lint:post-build": "node dist/index.js lint src test --ignore-pattern 'test/tests/lint'",
28-
"test": "jest --config ./test/jest.config.json",
28+
"test": "yarn build && jest --config ./test/jest.config.json",
2929
"watch": "chokidar \"./package.json\" \"./src/**/*.ts\" \"node_modules\\@jaredpalmer\\rollup-plugin-preserve-shebang\\dist\\index.js\" -c \"yarn build && echo Success\"",
3030
"start": "tsc -p tsconfig.json --watch"
3131
},

0 commit comments

Comments
 (0)