prettier/tests_integration/__tests__/plugin-preprocess.js

16 lines
366 B
JavaScript

"use strict";
const runPrettier = require("../runPrettier");
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: []
});
});