Update to latest Jest snapshotFormat
By default Nx has kept the older style of Jest Snapshot formats
to prevent breaking of any existing tests with snapshots.
It's recommend you update to the latest format.
You can do this by removing snapshotFormat property
and running tests with --update-snapshot flag.
Example: "nx affected --targets=test --update-snapshot"
More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
|
/* TODO: Update to latest Jest snapshotFormat |
moduleNameMapper: pathsToModuleNameMapper(paths, {
prefix: `${__dirname}/`,
}),
/* TODO: Update to latest Jest snapshotFormat
* By default Nx has kept the older style of Jest Snapshot formats
* to prevent breaking of any existing tests with snapshots.
* It's recommend you update to the latest format.
* You can do this by removing snapshotFormat property
* and running tests with --update-snapshot flag.
* Example: "nx affected --targets=test --update-snapshot"
* More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
*/
snapshotFormat: { escapeString: true, printBasicPrototype: true },
}
cb6c2d74e5f06489161b709ea7f755cc60c8b844
Update to latest Jest snapshotFormat
By default Nx has kept the older style of Jest Snapshot formats
to prevent breaking of any existing tests with snapshots.
It's recommend you update to the latest format.
You can do this by removing snapshotFormat property
and running tests with --update-snapshot flag.
Example: "nx affected --targets=test --update-snapshot"
More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
parsers/jest.preset.js
Line 35 in 1edd816
cb6c2d74e5f06489161b709ea7f755cc60c8b844