Refactor integration test files to use ES Module (part 2) (#11912)

This commit is contained in:
fisker Cheung authored and GitHub committed 2021-12-03 15:41:12 +08:00
1 parent b49da10d38
commit 5028086e07
37 files changed
+57 -91

No files matched your search

@@ -6,14 +6,14 @@ test("show external options with `--help`", async () => {
.stdout;
const pluggedStdout = await runPrettier("plugins/options-string", [
"--help",
"--plugin=./plugin",
"--plugin=./plugin.cjs",
]).stdout;
expect(snapshotDiff(originalStdout, pluggedStdout)).toMatchSnapshot();
});
describe("show detailed external option with `--help foo-string`", () => {
runPrettier("plugins/options-string", [
"--plugin=./plugin",
"--plugin=./plugin.cjs",
"--help",
"foo-string",
]).test({
@@ -25,7 +25,7 @@ describe("external options from CLI should work", () => {
runPrettier(
"plugins/options-string",
[
"--plugin=./plugin",
"--plugin=./plugin.cjs",
"--stdin-filepath",
"example.foo",
"--foo-string",