-
Notifications
You must be signed in to change notification settings - Fork 150
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
Add Jest to lookup #684
Comments
Thanks for opening up this issue! Yeah, something is wrong with colors. I tried a |
@SimenB there are two open PRs in Node.js that might improve the situation for Jest (I did not check what issue it is really about): nodejs/node#26261 Update: Thinking about it again, it will likely not have any impact. |
Oh, cool! I think the issue is with how citgm spawns the subprocesses - it does not handle colors correctly. IIRC setting |
Can you point me to the code in JEST that adds the coloring? I am just trying to wrap my head around what's really going on. |
We do it in a bunch of places - just grep for The test failure in the snippet above is since this serializer does not find any ansi escapes: https://github.com/facebook/jest/blob/b63b279ca832613d2685611d3f98ee175250e9ac/packages/pretty-format/src/plugins/ConvertAnsi.ts |
The most likely reason I see that the colors are not returned are that the output stream used by |
Can we simulate/pretend to be a |
@targos that might be possible. |
@SimenB what about adding a few libraries that use |
That works for me! E.g. React #625 |
@SimenB that sadly fails on Node.js master. It would have to be something that succeeds with master. |
Ah, ok. We can do https://github.com/jest-community/eslint-plugin-jest? And remove it whenever a more fitting project using Jest (or Jest itself) is added to the lookup? |
@SimenB if it passes the tests with Node.js master, that should be fine. Would you be so kind and open a PR? |
Yup it passes (at least |
This is mostly to have a code base using Jest. It would be preferable to include Jest itself instead. See #684.
This is mostly to have a code base using Jest. It would be preferable to include Jest itself instead. See #684.
@targos See jestjs/jest#8270 for how I solved a similar issue with Travis CI. |
I'm working on it 🙂 Main thing I need to do is allow another script than |
I tried to run CITGM on
|
@targos EDIT: Those are actually different lint errors than what I was talking about, but I'll take a look at those too. I've seen them happen locally but don't think they happen on CI, will need to investigate why |
Currently, lint will fail on a mac since it successfully installs fsevents. This is why I talked about using another script from |
I'm on Linux, though. |
Scott said something like it in chat as well, so I might very well have misunderstood the issue... I'd still like to skip coverage and lint though, they shouldn't be necessary for citgm 🙂 |
I tested it out on top of #696 now, and we're really close! We have 3 issues
This is what I have in "jest": {
"prefix": "v",
"maintainers": ["cpojer", "scotthovestadt", "SimenB", "thymikee"],
"yarn": true,
"scripts": ["test-ci-partial"],
"envVar": { "YARN_IGNORE_ENGINES": true },
"skip": ["aix"],
"timeoutLength": 1800000
}, Hack for colors: diff --git i/lib/package-manager/test.js w/lib/package-manager/test.js
index ba89636..d383705 100644
--- i/lib/package-manager/test.js
+++ w/lib/package-manager/test.js
@@ -69,7 +69,7 @@ function test(packageManager, context, next) {
const scripts = context.options.customTest
? [[context.options.customTest]]
: (context.module.scripts ? context.module.scripts : ['test']).map(
- (x) => [packageManagerBin, 'run', x]
+ (x) => [packageManagerBin, 'run', x, '--color']
);
context.emit(
'data', Full run included below $ node bin/citgm.js jest
info: starting | jest
info: lookup | jest
info: lookup-found | jest
info: jest lookup-replace | https://github.com/facebook/jest/archive/0efb1d7809cb96ae87a7601e7802f1dab3774280.tar.gz
info: jest npm: | Downloading project: https://github.com/facebook/jest/archive/0efb1d7809cb96ae87a7601e7802f1dab3774280.tar.gz
info: jest npm: | Project downloaded -.tgz
info: jest yarn: | yarn install started
info: jest yarn: | yarn install successfully completed
info: jest yarn: | test suite started
error: jest npm: | npm-test Timed Out
error: failure | Test Timed Out
warn: flaky module(s) |
warn: module name: | jest
warn: version: | 24.7.1
warn: error: | Test Timed Out
warn: error: | undefinedyarn install v1.15.0
warn: | [1/4] Resolving packages...
warn: | [2/4] Fetching packages...
warn: | [3/4] Linking dependencies...
warn: | [4/4] Building fresh packages...
warn: | $ opencollective postinstall && yarn build
warn: |
warn: | *** Thank you for using jest! ***
warn: |
warn: | Please consider donating to our open collective
warn: | to help us maintain this package.
warn: |
warn: | https://opencollective.com/jest/donate
warn: |
warn: | ***
warn: |
warn: | yarn run v1.15.0
warn: | $ yarn build:ts
warn: | $ node scripts/buildTs.js
warn: | Building TypeScript definition files
warn: | Building.................................................................. DONE
warn: | $ node ./scripts/build.js
warn: | Building packages
warn: | babel-jest................................................................ DONE
warn: | babel-plugin-jest-hoist................................................... DONE
warn: | babel-preset-jest......................................................... DONE
warn: | diff-sequences............................................................ DONE
warn: | eslint-config-fb-strict................................................... DONE
warn: | expect.................................................................... DONE
warn: | jest...................................................................... DONE
warn: | jest-changed-files........................................................ DONE
warn: | jest-circus............................................................... DONE
warn: | jest-cli.................................................................. DONE
warn: | jest-config............................................................... DONE
warn: | jest-console.............................................................. DONE
warn: | jest-core................................................................. DONE
warn: | jest-diff................................................................. DONE
warn: | jest-docblock............................................................. DONE
warn: | jest-each................................................................. DONE
warn: | jest-environment.......................................................... DONE
warn: | jest-environment-jsdom.................................................... DONE
warn: | jest-environment-node..................................................... DONE
warn: | jest-fake-timers.......................................................... DONE
warn: | jest-get-type............................................................. DONE
warn: | jest-haste-map............................................................ DONE
warn: | jest-jasmine2............................................................. DONE
warn: | jest-leak-detector........................................................ DONE
warn: | jest-matcher-utils........................................................ DONE
warn: | jest-message-util......................................................... DONE
warn: | jest-mock................................................................. DONE
warn: | jest-phabricator.......................................................... DONE
warn: | jest-regex-util........................................................... DONE
warn: | jest-repl................................................................. DONE
warn: | jest-reporters............................................................ DONE
warn: | jest-resolve.............................................................. DONE
warn: | jest-resolve-dependencies................................................. DONE
warn: | jest-runner............................................................... DONE
warn: | jest-runtime.............................................................. DONE
warn: | jest-serializer........................................................... DONE
warn: | jest-snapshot............................................................. DONE
warn: | jest-source-map........................................................... DONE
warn: | jest-test-result.......................................................... DONE
warn: | jest-test-sequencer....................................................... DONE
warn: | jest-transform............................................................ DONE
warn: | jest-types................................................................ DONE
warn: | jest-util................................................................. DONE
warn: | jest-validate............................................................. DONE
warn: | jest-watcher.............................................................. DONE
warn: | jest-worker............................................................... DONE
warn: | pretty-format............................................................. DONE
warn: | test-utils................................................................ DONE
warn: |
warn: | Building browser packages
warn: | jest-mock................................................................. DONE
warn: | pretty-format............................................................. DONE
warn: | expect.................................................................... DONE
warn: | Done in 210.63s.
warn: | Done in 231.80s.
yarn run v1.15.0
$ yarn jest -i --config jest.config.ci.js --color
$ node ./packages/jest-cli/bin/jest.js -i --config jest.config.ci.js --color
warn: |
warn: | ........(node:42320) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added. Use emitter.setMaxListeners() to increase limit
warn: | ..............
warn: | ● gets changed files for hg
warn: |
warn: | Command failed: hg status -amnu --rev min((!public() & ::.)+.)^ /var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest-changed-files-test-dir /var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest-changed-files-test-dir/nested-dir /var/folders/gj/0mygp
warn: | abort: empty revision range
warn: |
warn: | at makeError (node_modules/execa/index.js:174:9)
warn: |
warn: | .....
warn: | ● gets changed files for hg
warn: |
warn: | expect(received).toMatch(expected)
warn: |
warn: | Expected pattern: /PASS __tests__(\/|\\)file2.test.js/
warn: | Received string: "
warn: |
warn: | ● Test suite failed to run
warn: |
warn: | abort: empty revision range
warn: |
warn: | "
warn: |
warn: | 299 |
warn: | 300 | ({stdout, stderr} = runJest(DIR, ['-o', '--changedFilesWithAncestor']));
warn: | > 301 | expect(stderr).toMatch(/PASS __tests__(\/|\\)file2.test.js/);
warn: | | ^
warn: | 302 | expect(stderr).toMatch(/PASS __tests__(\/|\\)file3.test.js/);
warn: | 303 | });
warn: | 304 |
warn: |
warn: | at Object.toMatch (e2e/__tests__/onlyChanged.test.ts:301:18)
warn: | at asyncGeneratorStep (e2e/__tests__/onlyChanged.test.ts:13:103)
warn: | at _next (e2e/__tests__/onlyChanged.test.ts:15:194)
warn: | at e2e/__tests__/onlyChanged.test.ts:15:364
warn: | at Object.<anonymous> (e2e/__tests__/onlyChanged.test.ts:15:97)
warn: |
warn: | ........
warn: | ● mocks modules by default when using automocking
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● doesn't mock modules when explicitly unmocked when using automocking
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● doesn't mock modules when explicitly unmocked via a different name
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● doesn't mock modules when disableAutomock() has been called
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● uses manual mock when automocking on and mock is available
warn: error: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● does not use manual mock when automocking is off and a real module is available
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● resolves mapped module names and unmocks them by default
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● automocking is disabled by default
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● unmocks modules in config.unmockedModulePathPatterns for tests with automock enabled when automock is false
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● resetModules › resets all the modules
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● isolateModules › resets all modules after the block
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● isolateModules › cannot nest isolateModules blocks
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● isolateModules › can call resetModules within a isolateModules block
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ..........................
warn: | ● transitive dependencies › mocks a manually mocked and mapped module
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● transitive dependencies › unmocks transitive dependencies in node_modules by default
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● transitive dependencies › unmocks transitive dependencies in node_modules when using unmock
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● transitive dependencies › unmocks transitive dependencies in node_modules by default when using both patterns and unmock
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● transitive dependencies › mocks deep dependencies when using unmock
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ● transitive dependencies › does not mock deep dependencies when using deepUnmock
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:196:21)
warn: |
warn: | ...................................................
warn: | ● Runtime › genMockFromModule › does not cause side effects in the rest of the module system when generating a mock
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:197:21)
warn: |
warn: | ● Runtime › genMockFromModule › resolves mapped modules correctly
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: error: | at Object.writeFileSync (packages/jest-serializer/build/index.js:197:21)
warn: |
warn: | ● Runtime › creates mock objects in the right environment
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:197:21)
warn: |
warn: | ...............
warn: | ● Runtime › uses configured moduleDirectories
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:197:21)
warn: |
warn: | ● Runtime › resolves packages
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:197:21)
warn: |
warn: | ● Runtime › finds closest module from moduleDirectories
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:197:21)
warn: |
warn: | ● Runtime › only checks the configured directories
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:197:21)
warn: |
warn: | .............................................
warn: | ● Runtime › internalModule › loads modules and applies transforms
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:197:21)
warn: |
warn: | ● Runtime › internalModule › loads internal modules without applying transforms
warn: |
warn: | ENAMETOOLONG: name too long, open '/private/var/folders/gj/0mygpdfn6598xh34njlyrqzc0000gn/T/jest_dx/haste-map-Runtime--private-var-folders-gj-0mygpdfn6598xh34njlyrqzc0000gn-T-d356e5c6-aa8b-4ce8-9629-3d8f22d0ed89-jest-packages-jest-runtime-src-__tests
warn: |
warn: | at Object.writeFileSync (packages/jest-serializer/build/index.js:197:21)
warn: |
warn: | ................................
info: done | The smoke test has passed.
info: duration | test duration: 881708ms |
From the full run details the test also timed out: error: jest npm: | npm-test Timed Out
error: failure | Test Timed Out
...
info: done | The smoke test has passed.
info: duration | test duration: 881708ms The default timeout to run an install/test script is 10 minutes: Lines 3 to 4 in 0112720
|
Yeah, I added |
I don't think that's going to do anything: Line 8 in 0112720
context.options.timeoutLength is the value passed in on the command line (--timeout ).
|
Ahhhh. TIL 😀 |
Maybe now? 😀 #728 |
Jest is a very popular testing framework (> 4.4M downloads). Node.js releases have broken it more than once, latest being 11.11.0: nodejs/node#25963 (comment).
Support for Yarn was a necessary step to add Jest but unfortunately it is not enough.
Here is the (truncated) output I get with the latest version of CITGM:
There's obviously something wrong with colors.
/cc @SimenB
The text was updated successfully, but these errors were encountered: