Skip to content

Commit aaccc11

Browse files
committed
chore: prepare test cases
1 parent 50c75ca commit aaccc11

File tree

6 files changed

+25
-1
lines changed

6 files changed

+25
-1
lines changed

packages/unplugin-tailwindcss-mangle/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
"dev:tsc": "tsc -p tsconfig.json --sourceMap",
5353
"build:tsc": "tsc -p tsconfig.json",
5454
"_test": "jest",
55+
"test": "vitest run",
56+
"test:dev": "vitest",
5557
"_prepare": "tw-patch"
5658
},
5759
"files": [
@@ -91,4 +93,4 @@
9193
"type": "git",
9294
"url": "git+https://github.com/sonofmagic/tailwindcss-mangle.git"
9395
}
94-
}
96+
}

packages/unplugin-tailwindcss-mangle/test/fixtures/vite-repo/.gitkeep

Whitespace-only changes.

packages/unplugin-tailwindcss-mangle/test/fixtures/webpack-repo/.gitkeep

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { build } from 'vite'
2+
import { describe, it, expect } from 'vitest'
3+
4+
describe('vite build', () => {})
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import webpack from 'webpack'
2+
import { describe, it, expect } from 'vitest'
3+
4+
describe('webpack build', () => {
5+
// webpack({}, (err, stats) => {
6+
// if (err || stats.hasErrors()) {
7+
// // ...
8+
// }
9+
// // Done processing
10+
// });
11+
})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'vitest/config'
2+
3+
export default defineConfig({
4+
test: {
5+
testTimeout: 60_000
6+
}
7+
})

0 commit comments

Comments
 (0)