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

Popular posts from this blog

php - Autoloader issue not returning Class -

python - Getting next two indexes regardless of current index -

ruby - Prevent Custom Validation Error on Association -