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.

22 lines
528 B
JavaScript
Raw Normal View History

2018-01-09 14:27:26 +01:00
describe("parser preprocess function is used to reshape input text", () => {
runCli("plugins/preprocess", ["*.foo", "--plugin=./plugin.cjs"], {
ignoreLineEndings: true,
}).test({
stdout: "preprocessed:contents",
2018-01-09 14:27:26 +01:00
stderr: "",
status: 0,
write: [],
});
runCli(
"plugins/preprocess",
["*.foo", "--plugin=./plugin-with-async-preprocess.cjs"],
{
ignoreLineEndings: true,
},
).test({
stdout: "preprocessed:async:contents",
stderr: "",
status: 0,
write: [],
});
2018-01-09 14:27:26 +01:00
});