Replies: 1 comment 2 replies
-
If I understand correctly, this would affect the
My proposal would be to maybe add a new |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal 1: Make in built Serilizers more closely assign with jest format:
BREAKING
Refactor: No
Regenerate Snapshots: Yes
Resources:
Write Format
https://github.com/facebook/jest/blob/main/packages/jest-snapshot/src/utils.ts#L207-L214
https://github.com/facebook/jest/blob/main/packages/jest-snapshot/src/utils.ts#L217-L220
Handle New Lines
https://github.com/facebook/jest/blob/main/packages/jest-snapshot/src/utils.ts#L201
Escaping
https://github.com/facebook/jest/blob/main/packages/jest-snapshot/src/utils.ts#L189
Parse from filesystem (Use Nashhorn?)
https://github.com/facebook/jest/blob/main/packages/jest-snapshot/src/utils.ts#L113
Proposal 2: Remove flakey parameter injection. It doesn't work for parameterised tests.
Injecting
expect
as a method parameter does not work in many cases. Instance level injection work in all cases.BREAKING
Refactor: Yes
Regenerate Snapshots: No
Proposal 3: Respect Junit5
@DisplayName
as an alias for@SnapshotName
BREAKING
Refactor: No
Regenerate Snapshots: Yes
Beta Was this translation helpful? Give feedback.
All reactions