Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit c6d598b

Browse files
committed
Specify snapshotFormat in jest.config.js for integration tests
Jest 29 changed the default snapshot format (see https://github.com/facebook/jest/blob/94c06ef0aa9b327f3c400610b861e7308b29ee0d/docs/UpgradingToJest29.md). To maintain compatibility with prior versions, we preserve the old snapshot format rather than update the snapshots to the new format.
1 parent 9cfb501 commit c6d598b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/jest-plugin/test/integration-input/jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ module.exports = {
88
reporters: ["@unflakable/jest-plugin/dist/reporter"],
99
runner: "@unflakable/jest-plugin/dist/runner",
1010

11+
// Default changed in Jest 29 (see
12+
// https://github.com/facebook/jest/blob/94c06ef0aa9b327f3c400610b861e7308b29ee0d/docs/UpgradingToJest29.md).
13+
snapshotFormat: {
14+
escapeString: true,
15+
printBasicPrototype: true,
16+
},
17+
1118
testEnvironment: "node",
1219

1320
transform: {

0 commit comments

Comments
 (0)