Skip to content

Commit f4f35dd

Browse files
committed
test: fix expected config file extension
1 parent 3c24f2a commit f4f35dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/prettier-config/test/snapshot.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe("Test Prettier config with snapshot", () => {
55
describe("normal preset", () => {
66
it("matches snapshot", async () => {
77
const options = await prettier.resolveConfig("index.ts", {
8-
config: `${import.meta.dirname}/../dist/index.mjs`,
8+
config: `${import.meta.dirname}/../dist/index.js`,
99
});
1010

1111
expect(options).toMatchSnapshot();
@@ -15,15 +15,15 @@ describe("Test Prettier config with snapshot", () => {
1515
describe("astro preset", () => {
1616
it("matches snapshot with normal file", async () => {
1717
const options = await prettier.resolveConfig("index.ts", {
18-
config: `${import.meta.dirname}/../dist/astro.mjs`,
18+
config: `${import.meta.dirname}/../dist/astro.js`,
1919
});
2020

2121
expect(options).toMatchSnapshot();
2222
});
2323

2424
it("matches snapshot with astro file", async () => {
2525
const options = await prettier.resolveConfig("index.astro", {
26-
config: `${import.meta.dirname}/../dist/astro.mjs`,
26+
config: `${import.meta.dirname}/../dist/astro.js`,
2727
});
2828

2929
expect(options).toMatchSnapshot();

0 commit comments

Comments
 (0)