Files
test-repo/tests_integration/__tests__/plugin-preprocess.js
T
Marcel Jackwerth a27d19b2c1 Allow Plugins to preprocess text (#3664)
* Allow Plugins to preprocess text

* Actually pull up text

* Always expect the preprocessor to set the text

* Add tests for preprocessing

* Remove unused variable
2018-01-10 00:27:26 +11:00

13 lines
309 B
JavaScript

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