Skip to content

fix(snapshot-utils): replace Jest snapshot guide link from deprecated goo.gl link to fully canonical URL#15787

Merged
cpojer merged 4 commits intojestjs:mainfrom
hainenber:fix/jest-snapshot-header-with-deprecated-shortened-googl-link
Aug 27, 2025
Merged

fix(snapshot-utils): replace Jest snapshot guide link from deprecated goo.gl link to fully canonical URL#15787
cpojer merged 4 commits intojestjs:mainfrom
hainenber:fix/jest-snapshot-header-with-deprecated-shortened-googl-link

Conversation

@hainenber
Copy link
Copy Markdown
Contributor

Summary

Fixes #15756 and resolves #15224

Test plan

  • I've added unit test
  • I've used the development build of current branch to test out the replacement. See the video below
Screen.Recording.2025-08-16.at.21.26.07.mov

@netlify
Copy link
Copy Markdown

netlify bot commented Aug 16, 2025

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 55f5eda
🔍 Latest deploy log https://app.netlify.com/projects/jestjs/deploys/68ae887c75466c0008143889
😎 Deploy Preview https://deploy-preview-15787--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Aug 16, 2025

Open in StackBlitz

babel-jest

npm i https://pkg.pr.new/babel-jest@15787

babel-plugin-jest-hoist

npm i https://pkg.pr.new/babel-plugin-jest-hoist@15787

babel-preset-jest

npm i https://pkg.pr.new/babel-preset-jest@15787

create-jest

npm i https://pkg.pr.new/create-jest@15787

@jest/diff-sequences

npm i https://pkg.pr.new/@jest/diff-sequences@15787

expect

npm i https://pkg.pr.new/expect@15787

@jest/expect-utils

npm i https://pkg.pr.new/@jest/expect-utils@15787

jest

npm i https://pkg.pr.new/jest@15787

jest-changed-files

npm i https://pkg.pr.new/jest-changed-files@15787

jest-circus

npm i https://pkg.pr.new/jest-circus@15787

jest-cli

npm i https://pkg.pr.new/jest-cli@15787

jest-config

npm i https://pkg.pr.new/jest-config@15787

@jest/console

npm i https://pkg.pr.new/@jest/console@15787

@jest/core

npm i https://pkg.pr.new/@jest/core@15787

@jest/create-cache-key-function

npm i https://pkg.pr.new/@jest/create-cache-key-function@15787

jest-diff

npm i https://pkg.pr.new/jest-diff@15787

jest-docblock

npm i https://pkg.pr.new/jest-docblock@15787

jest-each

npm i https://pkg.pr.new/jest-each@15787

@jest/environment

npm i https://pkg.pr.new/@jest/environment@15787

jest-environment-jsdom

npm i https://pkg.pr.new/jest-environment-jsdom@15787

@jest/environment-jsdom-abstract

npm i https://pkg.pr.new/@jest/environment-jsdom-abstract@15787

jest-environment-node

npm i https://pkg.pr.new/jest-environment-node@15787

@jest/expect

npm i https://pkg.pr.new/@jest/expect@15787

@jest/fake-timers

npm i https://pkg.pr.new/@jest/fake-timers@15787

@jest/get-type

npm i https://pkg.pr.new/@jest/get-type@15787

@jest/globals

npm i https://pkg.pr.new/@jest/globals@15787

jest-haste-map

npm i https://pkg.pr.new/jest-haste-map@15787

jest-jasmine2

npm i https://pkg.pr.new/jest-jasmine2@15787

jest-leak-detector

npm i https://pkg.pr.new/jest-leak-detector@15787

jest-matcher-utils

npm i https://pkg.pr.new/jest-matcher-utils@15787

jest-message-util

npm i https://pkg.pr.new/jest-message-util@15787

jest-mock

npm i https://pkg.pr.new/jest-mock@15787

@jest/pattern

npm i https://pkg.pr.new/@jest/pattern@15787

jest-phabricator

npm i https://pkg.pr.new/jest-phabricator@15787

jest-regex-util

npm i https://pkg.pr.new/jest-regex-util@15787

@jest/reporters

npm i https://pkg.pr.new/@jest/reporters@15787

jest-resolve

npm i https://pkg.pr.new/jest-resolve@15787

jest-resolve-dependencies

npm i https://pkg.pr.new/jest-resolve-dependencies@15787

jest-runner

npm i https://pkg.pr.new/jest-runner@15787

jest-runtime

npm i https://pkg.pr.new/jest-runtime@15787

@jest/schemas

npm i https://pkg.pr.new/@jest/schemas@15787

jest-snapshot

npm i https://pkg.pr.new/jest-snapshot@15787

@jest/snapshot-utils

npm i https://pkg.pr.new/@jest/snapshot-utils@15787

@jest/source-map

npm i https://pkg.pr.new/@jest/source-map@15787

@jest/test-result

npm i https://pkg.pr.new/@jest/test-result@15787

@jest/test-sequencer

npm i https://pkg.pr.new/@jest/test-sequencer@15787

@jest/transform

npm i https://pkg.pr.new/@jest/transform@15787

@jest/types

npm i https://pkg.pr.new/@jest/types@15787

jest-util

npm i https://pkg.pr.new/jest-util@15787

jest-validate

npm i https://pkg.pr.new/jest-validate@15787

jest-watcher

npm i https://pkg.pr.new/jest-watcher@15787

jest-worker

npm i https://pkg.pr.new/jest-worker@15787

pretty-format

npm i https://pkg.pr.new/pretty-format@15787

commit: 55f5eda

hainenber and others added 4 commits August 27, 2025 13:17
… goo.gl link to fully canonical URL

Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
@cpojer cpojer force-pushed the fix/jest-snapshot-header-with-deprecated-shortened-googl-link branch from b6b5f92 to 55f5eda Compare August 27, 2025 04:24
Copy link
Copy Markdown
Member

@cpojer cpojer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@cpojer cpojer merged commit fc49145 into jestjs:main Aug 27, 2025
8 of 9 checks passed
@hainenber hainenber deleted the fix/jest-snapshot-header-with-deprecated-shortened-googl-link branch August 27, 2025 06:58
36degrees added a commit to alphagov/govuk-frontend that referenced this pull request Sep 2, 2025
To include a change introduced in 30.1.0 (jestjs/jest#15787) that’s causing our snapshot tests to fail with:

```
Test suite failed to run

    Outdated guide link: The snapshot guide link is outdated.Please update all snapshots while upgrading of Jest

    Expected: https://jestjs.io/docs/snapshot-testing
    Received: https://goo.gl/fbAQLP

      at validateSnapshotHeader (node_modules/@jest/snapshot-utils/build/index.js:104:12)
      at getSnapshotData (node_modules/@jest/snapshot-utils/build/index.js:156:28)
```
36degrees added a commit to alphagov/govuk-frontend that referenced this pull request Sep 4, 2025
To include a change introduced in 30.1.0 (jestjs/jest#15787) that’s causing our snapshot tests to fail with:

```
Test suite failed to run

    Outdated guide link: The snapshot guide link is outdated.Please update all snapshots while upgrading of Jest

    Expected: https://jestjs.io/docs/snapshot-testing
    Received: https://goo.gl/fbAQLP

      at validateSnapshotHeader (node_modules/@jest/snapshot-utils/build/index.js:104:12)
      at getSnapshotData (node_modules/@jest/snapshot-utils/build/index.js:156:28)
```
@github-actions
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Jest snapshots still being generated with goo.gl links. [Feature]: Replace google short urls, since it will not work start of 25th August 2025

2 participants