Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowen7 committed Aug 11, 2024
1 parent 5458ae6 commit 3c583cd
Show file tree
Hide file tree
Showing 66 changed files with 6,901 additions and 13,324 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: pnpm/[email protected]
with:
version: 6.0.2
version: 9.0
run_install: true

- run: pnpm test
18 changes: 0 additions & 18 deletions .jest.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16
FROM node:18

# Install pnpm
RUN npm install -g pnpm
Expand Down
40 changes: 0 additions & 40 deletions config-overrides.js

This file was deleted.

1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export default antfu({ react: true, rules: {
'react-refresh/only-export-components': 'off',
'style/brace-style': ['error', '1tbs'],
'antfu/top-level-function': 'off',
'@typescript-eslint/consistent-type-definitions': ['warn', 'type'],
} })
34 changes: 11 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
"start": "vite",
"build": "tsc && vite build",
"serve": "vite preview",
"test": "jest --config .jest.config.js --no-cache",
"test:watch": "jest --config .jest.config.js --no-cache --watch --",
"test:single": "jest --config .jest.config.js --no-cache --"
"test": "vitest",
"test:ui": "vitest --ui"
},
"dependencies": {
"@babel/core": "^7.0.0",
"@phosphor-icons/react": "^2.1.7",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
Expand All @@ -27,7 +25,6 @@
"@radix-ui/react-tooltip": "^1.1.2",
"@sentry/react": "^8.17.0",
"@vercel/analytics": "^1.0.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"i18next": "^21.6.16",
Expand All @@ -38,10 +35,8 @@
"jotai-immer": "^0.4.1",
"nanoid": "^3.1.16",
"react": "^18.1.0",
"react-aria": "^3.34.1",
"react-dom": "^18.1.0",
"react-i18next": "^11.16.7",
"react-resizable-panels": "^2.0.20",
"react-router-dom": "^6.3.0",
"react-use": "^17.4.0",
"tailwind-merge": "^2.4.0",
Expand All @@ -50,7 +45,6 @@
"typescript": "^5.5.0",
"usehooks-ts": "^3.1.0",
"vite": "^5.3.3",
"vite-plugin-svgr": "^4.2.0",
"vite-tsconfig-paths": "^4.3.2",
"web-vitals": "^3.3.0",
"zod": "^3.23.8"
Expand All @@ -69,29 +63,23 @@
},
"devDependencies": {
"@antfu/eslint-config": "^2.22.2",
"@babel/preset-env": "^7.14.2",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.14.5",
"@eslint-react/eslint-plugin": "^1.5.25",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^14.0.0",
"@types/jest": "^26.0.13",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@types/node": "^18.0.0",
"@types/react": "^18.0.11",
"@types/react-dom": "^18.0.5",
"@types/styled-jsx": "^2.2.8",
"@types/testing-library__jest-dom": "^5.14.4",
"@vitejs/plugin-react-swc": "^3.7.0",
"@vitest/ui": "^2.0.5",
"autoprefixer": "^10.4.19",
"babel-plugin-import": "^1.13.3",
"eslint": "^9.7.0",
"eslint-plugin-react-hooks": "5.1.0-rc-df5f2736-20240712",
"eslint-plugin-react-refresh": "^0.4.8",
"jest": "26.6.0",
"jest-canvas-mock": "^2.5.0",
"jsdom": "^24.1.1",
"postcss": "^8.4.39",
"regenerator-runtime": "^0.14.0",
"ts-jest": "^26.5.6",
"ts-node": "^10.0.0",
"vite-plugin-ejs": "^1.7.0"
"vite-plugin-ejs": "^1.7.0",
"vitest": "^2.0.5",
"vitest-canvas-mock": "^0.3.3"
}
}
Loading

0 comments on commit 3c583cd

Please sign in to comment.