Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix name too long error while running tests using Bazel #316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sfc-gh-pleszczewicz
Copy link

while running tests using Bazel I was getting following error:

Error: An error occurred while adding the reporter at path "/private/var/tmp/_bazel_pleszczewicz/70be9b0265926805fbb6db88234b0bd1/execroot/snowcommand/bazel-out/darwin_arm64-fastbuild/bin/projects/api/node_modules/jest-html-reporters/index.js".
ENAMETOOLONG: name too long, unlink '/var/folders/6r/wcbqqn_s4jzd611qfcgqlx800000gp/T/pleszczewicz-L3ByaXZhdGUvdmFyL3RtcC9fYmF6ZWxfcGxlc3pjemV3aWN6LzcwYmU5YjAyNjU5MjY4MDVmYmI2ZGI4ODIzNGIwYmQxL3NhbmRib3gvZGFyd2luLXNhbmRib3gvNDAvZXhlY3Jvb3Qvc25vd2NvbW1hbmQvYmF6ZWwtb3V0L2Rhcndpbl9hcm02NC1mYXN0YnVpbGQvYmluL3Byb2plY3RzL2FwaS9fX2plc3RfdGVzdHRlc3RfbW9kdWxlX3JiYWNfaW50ZWdyYXRpb24uc2gucnVuZmlsZXMvc25vd2NvbW1hbmQvcHJvamVjdHMvYXBp/jest-html-reporters-temp'
    at unlinkSync (node:fs:1881:3)
    at _unlinkSync (node:internal/fs/rimraf:214:14)
    at rimrafSync (node:internal/fs/rimraf:195:7)
    at Object.rmSync (node:fs:1271:10)
    at Object.removeSync (/private/var/tmp/_bazel_pleszczewicz/70be9b0265926805fbb6db88234b0bd1/execroot/snowcommand/bazel-out/darwin_arm64-fastbuild/bin/projects/api/node_modules/jest-html-reporters/node_modules/fs-extra/lib/remove/index.js:15:28)
    at MyCustomReporter.removeTempDir (/private/var/tmp/_bazel_pleszczewicz/70be9b0265926805fbb6db88234b0bd1/execroot/snowcommand/bazel-out/darwin_arm64-fastbuild/bin/projects/api/node_modules/jest-html-reporters/index.js:229:28)
    at MyCustomReporter.initAttachDir (/private/var/tmp/_bazel_pleszczewicz/70be9b0265926805fbb6db88234b0bd1/execroot/snowcommand/bazel-out/darwin_arm64-fastbuild/bin/projects/api/node_modules/jest-html-reporters/index.js:222:14)
    at MyCustomReporter.init (/private/var/tmp/_bazel_pleszczewicz/70be9b0265926805fbb6db88234b0bd1/execroot/snowcommand/bazel-out/darwin_arm64-fastbuild/bin/projects/api/node_modules/jest-html-reporters/index.js:205:14)
    at new MyCustomReporter (/private/var/tmp/_bazel_pleszczewicz/70be9b0265926805fbb6db88234b0bd1/execroot/snowcommand/bazel-out/darwin_arm64-fastbuild/bin/projects/api/node_modules/jest-html-reporters/index.js:113:14)
    at TestScheduler._addCustomReporter (/private/var/tmp/_bazel_pleszczewicz/70be9b0265926805fbb6db88234b0bd1/execroot/snowcommand/bazel-out/darwin_arm64-fastbuild/bin/projects/api/node_modules/@jest/core/build/TestScheduler.js:390:9)

this PR will fix this issue

@ihardlight
Copy link

Have the same issue, can someone merge this fix, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants