When running npm run watch:test I notice the following output:
> @vscode/[email protected] watch:test
> npm run test -- --watch
> @vscode/[email protected] test
> mocha --watch
collect
✔ should catch all files (1521ms)
1 passing (2s)
collect
✔ should catch all files (1430ms)
1 passing (1s)
collect
✔ should catch all files (1484ms)
1 passing (1s)
collect
⚠ [mocha] cleaning up, please wait...
This is caused because of the following glob in package.json
"mocha": {
"require": [
"ts-node/register"
],
"watch-files": "src/**",
"spec": "src/test/**/*.ts"
}
The tests will generate files and folders in src/test/fixtures/ causing an infinite trigger.