Closed busma13 closed 8 months ago
Since this is a unit test it should be possible to run just this test over and over again in a loop until we see it fail.
It looks like the errors are related to the timing of directories being created and destroyed. Creating temp directories with random names may fix this.
● Test suite failed to run
ENOENT: no such file or directory, uv_cwd
at process.cwd (node_modules/graceful-fs/polyfills.js:10:19)
at process.Object.<anonymous>.process.cwd (node_modules/graceful-fs/polyfills.js:10:19)
at process.Object.<anonymous>.process.cwd (node_modules/graceful-fs/polyfills.js:10:19)
at Object.<anonymous> (node_modules/@npmcli/arborist/lib/debug.js:21:11)
at Object.<anonymous> (node_modules/@npmcli/arborist/lib/tree-check.js:1:35)
at Object.<anonymous> (node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:11:19)
at Object.<anonymous> (node_modules/@npmcli/arborist/lib/arborist/index.js:40:3)
at Object.<anonymous> (node_modules/@npmcli/arborist/lib/index.js:1:38)
at Object.<anonymous> (node_modules/yeoman-environment/lib/util/repository.js:6:18)
at Object.<anonymous> (node_modules/yeoman-environment/lib/environment.js:28:26)
at Object.<anonymous>.YeomanTest.createEnv (node_modules/yeoman-test/lib/index.js:254:10)
at YeomanTest.Object.<anonymous>.YeomanTest.createTestEnv (node_modules/yeoman-test/lib/index.js:293:10)
at RunContext.Object.<anonymous>.RunContext.build (node_modules/yeoman-test/lib/run-context.js:112:32)
at RunContext.Object.<anonymous>.RunContext._run (node_modules/yeoman-test/lib/run-context.js:173:12)
This is the second time I've seen these two unit tests fail.