File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
packages/jest-snapshot-utils/src Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11## main
22
3+ ### Fixes
4+
5+ - ` [jest-snapshot-utils] ` Correct snapshot header regexp to work with newline across OSes ([ #15803 ] ( https://github.com/jestjs/jest/pull/15803 ) )
6+
37## 30.1.1
48
59### Fixes
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import type {Config} from '@jest/types';
1313import type { SnapshotData } from './types' ;
1414
1515export const SNAPSHOT_VERSION = '1' ;
16- const SNAPSHOT_HEADER_REGEXP = / ^ \/ \/ J e s t S n a p s h o t v ( .+ ) , ( .+ ) \r ? \n / ;
16+ const SNAPSHOT_HEADER_REGEXP = / ^ \/ \/ J e s t S n a p s h o t v ( .+ ) , ( .+ ) $ / m ;
1717export const SNAPSHOT_GUIDE_LINK = 'https://jestjs.io/docs/snapshot-testing' ;
1818export const SNAPSHOT_VERSION_WARNING = chalk . yellow (
1919 `${ chalk . bold ( 'Warning' ) } : Before you upgrade snapshots, ` +
You can’t perform that action at this time.
0 commit comments