|
| 1 | +diff --git a/dist/run.js b/dist/run.js |
| 2 | +index fdee17d2377dd013d55de1d54bee9d241894e800..7139e496da63da74b3e7966f4a3f5a613a7f3b3b 100644 |
| 3 | +--- a/dist/run.js |
| 4 | ++++ b/dist/run.js |
| 5 | +@@ -11,7 +11,7 @@ export default async ({ testPath }) => { |
| 6 | + ...config, |
| 7 | + filepath: testPath, |
| 8 | + }; |
| 9 | +- const isPretty = prettier.check(contents, prettierConfig); |
| 10 | ++ const isPretty = await prettier.check(contents, prettierConfig); |
| 11 | + if (isPretty) { |
| 12 | + return pass({ |
| 13 | + start, |
| 14 | +@@ -19,7 +19,7 @@ export default async ({ testPath }) => { |
| 15 | + test: { path: testPath }, |
| 16 | + }); |
| 17 | + } |
| 18 | +- const formatted = prettier.format(contents, prettierConfig); |
| 19 | ++ const formatted = await prettier.format(contents, prettierConfig); |
| 20 | + return fail({ |
| 21 | + start, |
| 22 | + end: Date.now(), |
| 23 | +diff --git a/src/run.ts b/src/run.ts |
| 24 | +index 1775851defdca87b753f1f9bae1cb663332eb640..b6c72e13f82d9e9ed3aef5095f8b8d82e2b4391b 100644 |
| 25 | +--- a/src/run.ts |
| 26 | ++++ b/src/run.ts |
| 27 | +@@ -19,7 +19,7 @@ export default async ({ testPath }: Parameters): Promise<TestResult> => { |
| 28 | + filepath: testPath, |
| 29 | + }; |
| 30 | + |
| 31 | +- const isPretty = prettier.check(contents, prettierConfig); |
| 32 | ++ const isPretty = await prettier.check(contents, prettierConfig); |
| 33 | + if (isPretty) { |
| 34 | + return pass({ |
| 35 | + start, |
| 36 | +@@ -28,7 +28,7 @@ export default async ({ testPath }: Parameters): Promise<TestResult> => { |
| 37 | + }); |
| 38 | + } |
| 39 | + |
| 40 | +- const formatted = prettier.format(contents, prettierConfig); |
| 41 | ++ const formatted = await prettier.format(contents, prettierConfig); |
| 42 | + |
| 43 | + return fail({ |
| 44 | + start, |
0 commit comments