diff --git a/tests_integration/__tests__/__snapshots__/write.js.snap b/tests_integration/__tests__/__snapshots__/write.js.snap index c4d93e198..bc3daa98c 100644 --- a/tests_integration/__tests__/__snapshots__/write.js.snap +++ b/tests_integration/__tests__/__snapshots__/write.js.snap @@ -2,8 +2,8 @@ exports[`do not write file with --write + invalid file 1`] = ` "invalid.js: SyntaxError: Unexpected token, expected ; (1:6) -> 1 | this is invalid! -  |  ^ +> 1 | this is invalid! + | ^ " `; diff --git a/tests_integration/__tests__/write.js b/tests_integration/__tests__/write.js index be9544f72..002cb1393 100644 --- a/tests_integration/__tests__/write.js +++ b/tests_integration/__tests__/write.js @@ -17,7 +17,11 @@ test("do not write file with --write + formated file", () => { }); test("do not write file with --write + invalid file", () => { - const result = runPrettier("cli/write", ["--write", "invalid.js"]); + const result = runPrettier("cli/write", [ + "--write", + "invalid.js", + "--no-color" + ]); expect(result.stderr).toMatchSnapshot(); expect(result.write).toHaveLength(0);