Skip to content

Commit a691ad6

Browse files
committed
Add test to find .mts and .cts config files
1 parent 06f33ed commit a691ad6

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

packages/tailwindcss-language-server/src/project-locator.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ testFixture('v3/ts-config', [
8686
{ config: 'tailwind.config.ts' },
8787
])
8888

89+
testFixture('v3/cts-config', [
90+
//
91+
{ config: 'tailwind.config.cts' },
92+
])
93+
94+
testFixture('v3/mts-config', [
95+
//
96+
{ config: 'tailwind.config.mts' },
97+
])
98+
8999
testFixture('v4/basic', [
90100
//
91101
{ config: 'app.css' },
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default {
2+
theme: {
3+
colors: { cool: 'blue' },
4+
},
5+
} satisfies {
6+
theme: Record<string, any>
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default {
2+
theme: {
3+
colors: { cool: 'blue' },
4+
},
5+
} satisfies {
6+
theme: Record<string, any>
7+
}

0 commit comments

Comments
 (0)