Skip to content

Commit 96f9ce0

Browse files
committed
chore: Update tests
1 parent 451ec71 commit 96f9ce0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cli-test/tests/__snapshots__/index.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`file contents: prettier-eslint cli-test/fixtures/example*.js --write --no-eslint-ignore 1`] = `
3+
exports[`file contents: prettier-eslint cli-test/fixtures/example*.js --write --no-eslint-ignore --no-prettier-ignore 1`] = `
44
Object {
55
"example1Result": "const { example1 } = baz.bar;
66
",
@@ -16,7 +16,7 @@ exports[`stdout: --version 1`] = `
1616
"
1717
`;
1818

19-
exports[`stdout: prettier-eslint cli-test/fixtures/example*.js --write --no-eslint-ignore 1`] = `
19+
exports[`stdout: prettier-eslint cli-test/fixtures/example*.js --write --no-eslint-ignore --no-prettier-ignore 1`] = `
2020
"success formatting 2 files with prettier-eslint
2121
"
2222
`;

cli-test/tests/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test("formats files and outputs to stdout", async () => {
4343
// can't just do the testOutput function here because
4444
// the output is in an undeterministic order
4545
const stdout = await runPrettierESLintCLI(
46-
"cli-test/fixtures/stdout*.js --no-eslint-ignore"
46+
"cli-test/fixtures/stdout*.js --no-eslint-ignore --no-prettier-ignore"
4747
);
4848
expect(stdout).toContain(
4949
stripIndent(
@@ -75,7 +75,7 @@ test("list different files with the --list-different option", async () => {
7575
// can't just do the testOutput function here because
7676
// the output is in an undeterministic order
7777
const stdout = await runPrettierESLintCLI(
78-
"cli-test/fixtures/stdout*.js --list-different --no-eslint-ignore"
78+
"cli-test/fixtures/stdout*.js --list-different --no-eslint-ignore --no-prettier-ignore"
7979
);
8080
expect(stdout).toContain("cli-test/fixtures/stdout1.js");
8181
expect(stdout).toContain("cli-test/fixtures/stdout2.js");
@@ -87,7 +87,8 @@ test("accepts stdin of code", async () => {
8787
expect(stdout).toEqual("console.log(window.baz, typeof []);\n");
8888
});
8989

90-
const writeCommand = "cli-test/fixtures/example*.js --write --no-eslint-ignore";
90+
const writeCommand =
91+
"cli-test/fixtures/example*.js --write --no-eslint-ignore --no-prettier-ignore";
9192

9293
test(`prettier-eslint ${writeCommand}`, async () => {
9394
// because we're using --write,

0 commit comments

Comments
 (0)