Skip to content

Commit 2de396b

Browse files
committed
test: implement integration test with vite
1 parent 788ec8f commit 2de396b

32 files changed

+618
-37
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ jobs:
4141
- name: Lint
4242
run: 'pnpm lint'
4343

44-
- name: Run Tests
45-
run: 'pnpm ci:test'
44+
- name: Run Integrations Tests
45+
run: 'pnpm ci:test:integrations'
46+
47+
- name: Run Unit Tests
48+
run: 'pnpm ci:test:units'
4649

4750
- name: Upload to Codecov
4851
uses: codecov/codecov-action@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
coverage
4+
dist
45

56
# dependencies
67
node_modules

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"prepublishOnly": "publint",
4545
"lint": "eslint src/**/*",
4646
"test": "vitest --coverage",
47-
"ci:test": "vitest run --coverage",
47+
"ci:test:units": "vitest run plugin --coverage",
48+
"ci:test:integrations": "vitest run vite",
4849
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
4950
"ci:publish": "changeset publish && pnpm install"
5051
},
@@ -53,12 +54,12 @@
5354
"import-meta-resolve": "^4.1.0"
5455
},
5556
"peerDependencies": {
56-
"tailwindcss": ">=3.4.14 || >=4.0.0-alpha.36"
57+
"tailwindcss": ">=3.4.14 || >=4.0.0-beta.1"
5758
},
5859
"devDependencies": {
5960
"@changesets/changelog-github": "^0.5.0",
6061
"@changesets/cli": "^2.27.9",
61-
"@tailwindcss/node": "4.0.0-alpha.36",
62+
"@tailwindcss/node": "4.0.0-beta.1",
6263
"@types/node": "^22.9.0",
6364
"@vitest/coverage-istanbul": "2.1.5",
6465
"@vitest/ui": "^2.1.5",
@@ -70,6 +71,7 @@
7071
"tailwindcss": "4.0.0-alpha.36",
7172
"tailwindcssv3": "npm:tailwindcss@3.4.14",
7273
"typescript": "^5.6.3",
74+
"vite": "^5.4.11",
7375
"vitest": "^2.1.5"
7476
},
7577
"packageManager": "pnpm@9.12.0",

0 commit comments

Comments
 (0)