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

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -