2021-12-02 10:19:32 +08:00
|
|
|
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", () => {
|
2018-11-14 07:55:50 -05:00
|
|
|
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: [],
|
|
|
|
|
});
|
|
|
|
|
});
|