Repository navigation
🦋 Release package updates - #3014
Merged
Merged
Conversation
guardian-cdk
Bot
force-pushed
the
changeset-release/main
branch
from
November 3, 2026 08:38
e1dbe6e to
ca12dda
Compare
guardian-cdk
Bot
force-pushed
the
changeset-release/main
branch
from
November 5, 2026 10:35
ca12dda to
74e1f1f
Compare
AshCorr
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@guardian/cdk@67.0.0
Major Changes
096dd50: Mock the tracking tag value using NODE_ENV
When
NODE_ENV=test(set automatically by Jest), thegu:cdk:versiontracking tag isTEST. Mocking is no longer needed.Migration
jest.setup.js."./jest.setup.js"fromsetupFilesAfterEnvin your Jest config (jest.config.jsorpackage.json).!jest.setup.jsfrom.gitignore, if present.NODE_ENV=test(Jest does this by default), then update your snapshots (npm test -- -u).If everything has worked correctly you should not see any change to your snapshots.
Minor Changes
3995734: New projects created with
npx @guardian/cdk@latest newnow use the built-in Node.js test runner instead of Jest.Existing projects are unaffected. To migrate an existing project:
Remove the
jest,ts-jestand@types/jestdependencies, thejestblock inpackage.json, and anyjest.config.js.Update the scripts in
package.json:NODE_ENV=testmust be set, as the Node.js test runner does not set it (unlike Jest). GuCDK uses it to keep thegu:cdk:versiontag static in snapshots.Update your tests to use
suiteandtestfromnode:testin place ofdescribeandit, and the test context's snapshot assertion in place oftoMatchSnapshot:Delete the old Jest snapshots (
lib/__snapshots__) and regenerate them withnpm run test-update. Review the diff, as the snapshot file format differs.In
eslint.config.mjs, remove...guardian.configs.jestand disable@typescript-eslint/no-floating-promisesfor test files:Patch Changes