Skip to content

Commit 0922c4a

Browse files
committed
Migrated to Vitest.
1 parent 0b0beec commit 0922c4a

File tree

10 files changed

+1001
-1576
lines changed

10 files changed

+1001
-1576
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ dist
22
dist.*
33
./configs
44
node_modules
5-
jest.config.js
6-
jest.setup.js

docs/jsx-no-undef.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ let el = <div use:X />;
4444

4545
let el = <div use:X={{}} />;
4646

47-
let el = <div use:X />;
48-
4947
/* eslint solid/jsx-no-undef: ["error", { "allowGlobals": true }] */
5048
let el = <div use:X />;
5149

@@ -161,12 +159,6 @@ let X,
161159
let Component,
162160
X = <Component use:X />;
163161

164-
/* eslint solid/jsx-no-undef: ["error", { "allowGlobals": true }] */
165-
let el = <div use:X />;
166-
167-
/* eslint solid/jsx-no-undef: ["error", { "allowGlobals": true }] */
168-
let el = <div use:X />;
169-
170162
/* eslint solid/jsx-no-undef: ["error", { "typescriptEnabled": true }] */
171163
let el = <Component />;
172164

docs/reactivity.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,6 @@ const Component = () => {
318318
return <button type={signal}>Button</button>;
319319
};
320320

321-
const Component = () => {
322-
const [signal] = createSignal();
323-
return <div>{signal}</div>;
324-
};
325-
326321
const Component = () => {
327322
const [signal] = createSignal("world");
328323
const memo = createMemo(() => "hello " + signal);

jest.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"prepublishOnly": "pnpm build && pnpm lint && prettier --check src && pnpm test:all",
2323
"build": "tsc -p tsconfig.build.json && pnpm run docs",
2424
"lint": "eslint --ext .js,.jsx,.ts,.tsx --ignore-pattern test/fixture/invalid .",
25-
"docs": "PARSER=none ts-node --transpile-only scripts/docs.ts",
26-
"test": "jest",
25+
"docs": "PARSER=none tsx scripts/docs.ts",
26+
"test": "vitest",
2727
"test:ts": "PARSER=ts pnpm test",
2828
"test:babel": "PARSER=babel pnpm test",
2929
"test:v6": "PARSER=v6 pnpm test",
@@ -53,7 +53,6 @@
5353
"@types/eslint-v8": "npm:@types/eslint@8",
5454
"@types/estraverse": "^5.1.7",
5555
"@types/is-html": "^2.0.2",
56-
"@types/jest": "^29.5.12",
5756
"@types/markdown-magic": "^1.0.4",
5857
"@types/node": "^16.18.94",
5958
"@types/prettier": "^2.7.3",
@@ -67,14 +66,13 @@
6766
"eslint-v7": "npm:eslint@7",
6867
"eslint-v8": "npm:eslint@8",
6968
"husky": "^8.0.3",
70-
"jest": "^29.7.0",
7169
"lint-staged": "^13.3.0",
7270
"markdown-magic": "^2.6.1",
7371
"prettier": "^2.8.8",
74-
"ts-jest": "^29.1.2",
75-
"ts-node": "^10.9.2",
72+
"tsx": "^4.7.3",
7673
"typescript": "^5.4.3",
77-
"typescript-eslint": "^7.7.1"
74+
"typescript-eslint": "^7.7.1",
75+
"vitest": "^1.5.2"
7876
},
7977
"peerDependencies": {
8078
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"

0 commit comments

Comments
 (0)