Skip to content

Commit

Permalink
refactor: switch to using vitest (#835)
Browse files Browse the repository at this point in the history
Co-authored-by: yetone <yetoneful@gmail.com>
  • Loading branch information
maltoze and yetone committed Jun 28, 2023
1 parent 16253ea commit ad1da15
Show file tree
Hide file tree
Showing 7 changed files with 379 additions and 1,533 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
Expand All @@ -20,14 +19,14 @@ module.exports = {
'react/react-in-jsx-scope': 'off',
'camelcase': 'error',
'eqeqeq': ['error', 'always'],
'spaced-comment': 'error',
'no-duplicate-imports': 'error',
'baseui/deprecated-theme-api': 'warn',
'baseui/deprecated-component-api': 'warn',
'baseui/no-deep-imports': 'warn',
'prettier/prettier': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'spaced-comment': ['error', 'always', { markers: ['/'] }],
},
settings: {
'import/resolver': {
Expand Down
10 changes: 0 additions & 10 deletions jest.config.js

This file was deleted.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build-browser-extension": "tsc && make build-browser-extension",
"build-userscript": "make build-userscript",
"clean": "make clean",
"test": "npx jest",
"test": "vitest test",
"test:e2e": "playwright test",
"lint": "eslint 'src/**/*.{ts,tsx}' --cache",
"lint:fix": "eslint --fix 'src/**/*.{ts,tsx}'",
Expand Down Expand Up @@ -77,14 +77,12 @@
"web-streams-polyfill": "^3.2.1"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
"@playwright/test": "^1.34.3",
"@samrum/vite-plugin-web-extension": "^5.0.0",
"@tauri-apps/cli": "^1.3.1",
"@types/chrome": "0.0.237",
"@types/common-tags": "^1.8.1",
"@types/fs-extra": "^11.0.1",
"@types/jest": "^29.5.1",
"@types/node": "^20.2.5",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
Expand Down Expand Up @@ -113,16 +111,15 @@
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"fs-extra": "^11.1.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jsdom": "^22.1.0",
"prettier": "^2.8.4",
"rollup-plugin-visualizer": "^5.9.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4",
"vite": "^4.3.8",
"vite-plugin-dynamic-import": "^1.4.0",
"vite-plugin-monkey": "^3.2.2",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.32.0",
"webextension-polyfill": "^0.10.0"
},
"build": {
Expand Down
Loading

0 comments on commit ad1da15

Please sign in to comment.