ava watch functionality and transpiling typescript -
is possible use ava --watch functionality when write tests in typescript?
now have this
"test": "tsc -p tsconfig.test.json && ava \"dist_test/**/*.js\"" only nice have test modified source / test files during development.
you use chokidar-cli detect file changes , manually run build , test.
"test": "tsc -p tsconfig.test.json && ava \"dist_test/**/*.js\"", "test:watch": "chokidar \"dist_test/**/*.js\" -c \"npm run test\" --initial", once changes detected in files run test you.
Comments
Post a Comment