You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll be releasing 2.0.0 shortly and have introduced a number of breaking changes
BREAKING CHANGES
DateTime serialization is now ISO format
Default serializer is now the ToStringSnapshotSerializer, to continue using JSON
expect(userDto).json().toMatchSnapshot();
OR override it in your custom SnapshotConfig
public class MySnapshotConfig implements SnapshotConfig {
@Override
public SnapshotSerializer getSerializer() {
return new JacksonSnapshotSerializer();
}
}
@UseSnapshotSerializer got deleted in preference to using it explicitly on the expect() method (.json(), .string(), .orderedJson(), .serializer())
getTestDir() got renamed to getOutputDir()
some minor changes to the format of STRING and JSON serialization
In theory you should be able to just run your tests with the -PupdateSnapshot JVM property and all snapshots should update themselves to the latest version.
documentationImprovements or additions to documentation
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'll be releasing 2.0.0 shortly and have introduced a number of breaking changes
BREAKING CHANGES
OR override it in your custom SnapshotConfig
@UseSnapshotSerializer
got deleted in preference to using it explicitly on theexpect()
method (.json()
,.string()
,.orderedJson()
,.serializer()
)getTestDir()
got renamed togetOutputDir()
In theory you should be able to just run your tests with the
-PupdateSnapshot
JVM property and all snapshots should update themselves to the latest version.Beta Was this translation helpful? Give feedback.
All reactions