chore: opt jest codebase#14366
Conversation
✅ Deploy Preview for jestjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
|
||
| export default function invariant( | ||
| condition: unknown, | ||
| message?: string, |
There was a problem hiding this comment.
It would be nice to make the message required. Also it would be nice to append "This is a bug in Jest...", like here:
jest/packages/jest-runtime/src/index.ts
Line 530 in 0fd5b1c
jest/packages/jest-runtime/src/index.ts
Line 546 in 0fd5b1c
invariant() is used in places there value is defined, but TypeScript cannot see that. So a failure is definitely a bug, that is why it makes sense to append "This is a bug in Jest..."
By the way, it could be good default message (instead of making the message required).
|
Sorry, I was wrong. Apparently |
|
@mrazauskas I've try some methods to fix CI, and it did not work. Now I need your help. Is there any suggestions or methods to fix the broken CI. The informations is above: and more details in link. Thanks any more. |
|
This is flaky test. Just ignore it. Not related with your changes. |
|
Can this pr be merged, if no other problems ? cc @SimenB @mrazauskas |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
This pr is optimize code base. Including
jest-runtime,jest-changed-filesandjest-coreand so on.Test plan