diff --git a/tests_integration/__tests__/format.js b/tests_integration/__tests__/format.js index 70b8b9147..387c8c2a0 100644 --- a/tests_integration/__tests__/format.js +++ b/tests_integration/__tests__/format.js @@ -62,5 +62,7 @@ test("should work with foo plugin instance", () => { test("'Adjacent JSX' error should not be swallowed by Babel's error recovery", () => { const input = "\n"; - expect(() => prettier.format(input)).toThrowErrorMatchingSnapshot(); + expect(() => + prettier.format(input, { parser: "babel" }) + ).toThrowErrorMatchingSnapshot(); });