Files
test-repo/tests/integration/__tests__/resolve-config-file.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
335 B
JavaScript
Raw Normal View History

import path from "node:path";
import prettier from "prettier-local";
import createEsmUtils from "esm-utils";
2020-08-21 09:43:24 +08:00
const { __dirname } = createEsmUtils(import.meta);
2020-08-21 09:43:24 +08:00
test("API resolveConfigFile", async () => {
const result = await prettier.resolveConfigFile();
expect(result).toEqual(path.join(__dirname, "../../../.prettierrc"));
});