Refactor integration test files to use ES Module (part 2) (#11912)
This commit is contained in:
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",
|
||||
|
||||
Reference in new issue
Block a user