Lorsque j'ai voulu lancé mes tests pour vérifier que tout fonctionne. j'ai eu un problème avec le Watch all de Jest :
tchoune@yannicks-MacBook-Pro Bi1 % jest tests/LabelDetector.test.js --watchAll
jest-haste-map: Watchman crawl failed. Retrying once with node crawler.
Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project.
Error: Watchman error: std::__1::system_error: open: /Users/tchoune/Documents/dev/js/Bi1: Operation not permitted. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.
node:events:497
throw er; // Unhandled 'error' event
^
Error: std::__1::system_error: open: /Users/tchoune/Documents/dev/js/Bi1: Operation not permitted
at BunserBuf.<anonymous> (/opt/homebrew/lib/node_modules/jest/node_modules/fb-watchman/index.js:99:23)
at BunserBuf.emit (node:events:519:28)
at BunserBuf.process (/opt/homebrew/lib/node_modules/jest/node_modules/bser/index.js:292:10)
at /opt/homebrew/lib/node_modules/jest/node_modules/bser/index.js:247:12
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Emitted 'error' event on WatchmanWatcher instance at:
at Client.<anonymous> (/opt/homebrew/lib/node_modules/jest/node_modules/jest-haste-map/build/watchers/WatchmanWatcher.js:132:10)
at Client.emit (node:events:519:28)
at BunserBuf.<anonymous> (/opt/homebrew/lib/node_modules/jest/node_modules/fb-watchman/index.js:111:12)
at BunserBuf.emit (node:events:519:28)
at /opt/homebrew/lib/node_modules/jest/node_modules/bser/index.js:249:12
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
watchmanResponse: {
error: 'std::__1::system_error: open: /Users/tchoune/Documents/dev/js/Bi1: Operation not permitted',
version: '2023.11.13.00'
}
}
Node.js v21.5.0
Après quelques recherches ces commandes ont résolus mon soucis :
Lorsque j'ai voulu lancé mes tests pour vérifier que tout fonctionne. j'ai eu un problème avec le Watch all de Jest :
Après quelques recherches ces commandes ont résolus mon soucis :