Skip to content

Commit 006e0f1

Browse files
committed
Add tests
1 parent d248e55 commit 006e0f1

File tree

8 files changed

+30
-0
lines changed

8 files changed

+30
-0
lines changed

tests/fixtures.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ let fixtures = [
1616
dir: 'no-prettier-config',
1717
ext: 'html',
1818
},
19+
{
20+
name: 'no local install of Tailwind CSS (uses v4)',
21+
dir: 'no-local-version',
22+
ext: 'html',
23+
},
24+
{
25+
name: 'no stylesheet given (uses v4)',
26+
dir: 'no-stylesheet-given',
27+
ext: 'html',
28+
},
1929
{
2030
name: 'inferred config path',
2131
dir: 'basic',
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import "tailwindcss";
2+
3+
@theme {
4+
--color-tomato: tomato;
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="sm:bg-tomato bg-red-500"></div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="bg-red-500 sm:bg-tomato"></div>

tests/fixtures/no-local-version/package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"prettier": {
3+
"tailwindStylesheet": "./app.css"
4+
}
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="sm:bg-red-500 bg-red-500"></div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="bg-red-500 sm:bg-red-500"></div>

0 commit comments

Comments
 (0)