diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index d24072ca04d1..000000000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -packages/jest-config/src/__tests__/jest-preset.json eol=lf diff --git a/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap b/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap index b3c6e240ddd7..4acf2575baa6 100644 --- a/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap +++ b/packages/jest-config/src/__tests__/__snapshots__/normalize.test.js.snap @@ -17,17 +17,6 @@ exports[`Upgrade help logs a warning when \`scriptPreprocessor\` and/or \`prepro " `; -exports[`preset throws when preset is invalid 1`] = ` -"Validation Error: - - Preset react-native is invalid: - Unexpected token } in JSON at position 104 - - Configuration Documentation: - https://facebook.github.io/jest/docs/configuration.html -" -`; - exports[`preset throws when preset not found 1`] = ` "Validation Error: diff --git a/packages/jest-config/src/__tests__/normalize.test.js b/packages/jest-config/src/__tests__/normalize.test.js index bc2b5a759231..b7d3d99cfeb0 100644 --- a/packages/jest-config/src/__tests__/normalize.test.js +++ b/packages/jest-config/src/__tests__/normalize.test.js @@ -946,7 +946,7 @@ describe('preset', () => { }, {}, ); - }).toThrowErrorMatchingSnapshot(); + }).toThrowError(/Unexpected token }/); }); test('works with "react-native"', () => {