Files
test-repo/tests/integration/__tests__/plugin-preprocess.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
351 B
JavaScript
Raw Normal View History

import runPrettier from "../runPrettier.js";
2018-05-28 21:46:55 +10:00
const EOL = "\n";
2018-01-09 14:27:26 +01:00
describe("parser preprocess function is used to reshape input text", () => {
runPrettier("plugins/preprocess", ["*.foo", "--plugin=./plugin"], {
ignoreLineEndings: true,
}).test({
2018-01-22 19:20:50 +01:00
stdout: "preprocessed:contents" + EOL,
2018-01-09 14:27:26 +01:00
stderr: "",
status: 0,
write: [],
});
});