Skip to content
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

Update to latest Jest snapshotFormat #88

Open
github-actions bot opened this issue Mar 3, 2023 · 0 comments
Open

Update to latest Jest snapshotFormat #88

github-actions bot opened this issue Mar 3, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

github-actions bot commented Mar 3, 2023

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

@github-actions github-actions bot added the todo label Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants