-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 skipped and todo tests in Github Actions Reporter #14309
Conversation
✅ Deploy Preview for jestjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
packages/jest-reporters/src/__tests__/GitHubActionsReporter.test.ts
Outdated
Show resolved
Hide resolved
packages/jest-reporters/src/__tests__/GitHubActionsReporter.test.ts
Outdated
Show resolved
Hide resolved
141764a
to
c3afed2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! All looks good to my eye.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you resolve the conflict? 🙂
Test, | ||
TestCaseResult, | ||
TestResult, | ||
} from '@jest/test-result'; | ||
import type {Config} from '@jest/types'; | ||
import GitHubActionsReporter from '../GitHubActionsReporter'; | ||
import {normalizeIcons} from '../../../../e2e/Utils'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this helper to @jest/test-utils
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably do that in another PR though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to this now. @jest/test-utils
is an internal package.
Conflict solved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Very good idea to defined it as a function
.
e2e/Utils.ts
Outdated
|
||
export {normalizeIcons} from '@jest/test-utils'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reexport is unnecessary. This util is part of the internal testing infrastructure, it isn’t a public API.
export {normalizeIcons} from '@jest/test-utils'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
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
Fixes #14278
Test plan
Added relevant unit tests