Skip to content

Commit

Permalink
Remove Jest dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichiro committed Jun 4, 2024
1 parent 3abc223 commit 6c77d4e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 239 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"env": {
"es6": true,
"node": true,
"jest": true,
"jasmine": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
Expand Down Expand Up @@ -33,6 +31,10 @@
"react/prop-types": "warn"
},
"globals": {
"HIDDevice": "readonly"
"HIDDevice": "readonly",
"describe": "readonly",
"test": "readonly",
"expect": "readonly",
"fail": "readonly"
}
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"@storybook/node-logger": "^6.1.14",
"@storybook/preset-create-react-app": "^3.1.5",
"@storybook/react": "^6.1.14",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/ajv": "^1.0.0",
Expand Down
5 changes: 0 additions & 5 deletions src/setupTests.ts

This file was deleted.

4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/// <reference types="vitest" />
import react from '@vitejs/plugin-react-swc';
import { defineConfig, Plugin, loadEnv } from 'vite';
import { Plugin, loadEnv } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import { defineConfig } from 'vitest/config';

export default defineConfig(({ mode }) => {
return {
Expand All @@ -19,7 +20,6 @@ export default defineConfig(({ mode }) => {
test: {
globals: true,
environment: 'happy-dom',
setupFiles: 'setupTests.ts',
},
};
});
Expand Down
Loading

0 comments on commit 6c77d4e

Please sign in to comment.