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

16 lines
371 B
JavaScript

"use strict";
const runPrettier = require("../runPrettier.js");
const EOL = "\n";
describe("parser preprocess function is used to reshape input text", () => {
runPrettier("plugins/preprocess", ["*.foo", "--plugin=./plugin"], {
ignoreLineEndings: true,
}).test({
stdout: "preprocessed:contents" + EOL,
stderr: "",
status: 0,
write: [],
});
});