Skip to content

Commit ef8a28c

Browse files
committed
chore(test): move test cases to core dir
1 parent 1095692 commit ef8a28c

28 files changed

+8
-73
lines changed

packages/core/jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const config: Config = {
44
projects: [
55
{
66
...baseConfig
7+
// transformIgnorePatterns: ['/node_modules/(?!(@parse5/)/tools)']
78
}
89
]
910
}

packages/core/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,13 @@
2929
"dependencies": {
3030
"@babel/core": "^7.21.8",
3131
"@babel/types": "^7.21.5",
32-
"micromatch": "^4.0.5",
3332
"parse5": "^7.1.2",
3433
"postcss": "^8.4.23",
35-
"postcss-selector-parser": "^6.0.12",
36-
"semver": "^7.5.0"
34+
"postcss-selector-parser": "^6.0.12"
3735
},
3836
"devDependencies": {
3937
"@parse5/tools": "^0.1.0",
4038
"@types/babel__core": "^7.20.0",
41-
"@types/escodegen": "^0.0.7",
42-
"@types/micromatch": "^4.0.2",
43-
"@types/semver": "^7.5.0",
44-
"pkg-types": "^1.0.3",
4539
"tslib": "^2.5.0"
4640
},
4741
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",

packages/unplugin-tailwindcss-mangle/test/classGenerator.test.ts renamed to packages/core/test/classGenerator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ClassGenerator } from 'tailwindcss-mangle-core'
1+
import ClassGenerator from '../src/classGenerator'
22

33
describe('classGenerator', () => {
44
it('size 26*27+1', () => {

packages/unplugin-tailwindcss-mangle/test/css.test.ts renamed to packages/core/test/css.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ClassGenerator, cssHandler } from 'tailwindcss-mangle-core'
1+
import { cssHandler } from '../src/css'
2+
import ClassGenerator from '../src/classGenerator'
23
import { getTestCase } from './utils'
34
describe('css', () => {
45
let classGenerator: ClassGenerator

0 commit comments

Comments
 (0)