From 81e8f281565355c8b87398ff3382ad1cedab2a7f Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Fri, 14 Feb 2020 06:14:24 +0800 Subject: [PATCH] Fix warning on test (#7566) --- tests_integration/__tests__/format.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); });