diff --git a/tests/integration/__tests__/with-parser-inference.js b/tests/integration/__tests__/with-parser-inference.js index 32d205c21..a921837ee 100644 --- a/tests/integration/__tests__/with-parser-inference.js +++ b/tests/integration/__tests__/with-parser-inference.js @@ -71,17 +71,17 @@ describe("infers parser from filename", () => { ); }); - test("json from .lintstagedrc", () => { + test("json from .lintstagedrc", async () => { expect( - prettier.format(" { '*': 'your-cmd' } ", { + await prettier.format(" { '*': 'your-cmd' } ", { filepath: "/path/to/.lintstagedrc", }) ).toBe('{ "*": "your-cmd" }\n'); }); - test("yaml from .lintstagedrc", () => { + test("yaml from .lintstagedrc", async () => { expect( - prettier.format( + await prettier.format( /* indent */ ` '*': - your-cmd