Files
test-repo/tests_integration/__tests__/syntax-error.js
T

11 lines
252 B
JavaScript
Raw Normal View History

"use strict";
const runPrettier = require("../runPrettier");
describe("exits with non-zero code when input has a syntax error", () => {
2020-02-27 02:19:52 +02:00
runPrettier("cli/with-shebang", ["--parser", "babel"], {
2020-03-21 22:07:52 +02:00
input: "a.2",
}).test({
2020-03-21 22:07:52 +02:00
status: 2,
});
});