Skip to content

Commit dca739f

Browse files
fix(snapshot-utils): Fix formatting
Run prettier on changed files.
1 parent 5334958 commit dca739f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Features
1010

11-
- `[jest-leak-detector]` Configurable GC aggressiveness regarding to V8 heap snapshot generation ([#15793](https://github.com/jestjs/jest/pull/15793/))
11+
- `[jest-leak-detector]` Configurable GC aggressiveness regarding to V8 heap snapshot generation ([#15793](https://github.com/jestjs/jest/pull/15793/))
1212
- `[jest-runtime]` Reduce redundant ReferenceError messages
1313
- `[jest-core]` Include test modules that failed to load when --onlyFailures is active
1414

packages/jest-snapshot-utils/src/__tests__/utils.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ test('getSnapshotData() throws for deprecated snapshot guide link', () => {
176176

177177
expect(() => getSnapshotData(filename, update)).toThrow(
178178
`${chalk.red(
179-
`${chalk.red.bold('Outdated guide link')}: The snapshot guide link is outdated.` +
179+
`${chalk.red.bold(
180+
'Outdated guide link',
181+
)}: The snapshot guide link is outdated.` +
180182
'Please update all snapshots while upgrading of Jest',
181183
)}\n\nExpected: ${SNAPSHOT_GUIDE_LINK}\n` +
182184
`Received: ${deprecatedGuideLink}`,

packages/jest-snapshot-utils/src/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ const validateSnapshotHeader = (snapshotContents: string) => {
7777
return new Error(
7878
// eslint-disable-next-line prefer-template
7979
chalk.red(
80-
`${chalk.red.bold('Outdated guide link')}: The snapshot guide link is outdated.` +
80+
`${chalk.red.bold(
81+
'Outdated guide link',
82+
)}: The snapshot guide link is outdated.` +
8183
'Please update all snapshots while upgrading of Jest',
8284
) +
8385
'\n\n' +

0 commit comments

Comments
 (0)