fix: using jest-dom instead of vitest-dom

This commit is contained in:
chenos 2024-03-29 09:24:40 +08:00
parent a38e34cf9a
commit 672d1d9a45
2 changed files with 2 additions and 2 deletions

View File

@ -46,6 +46,7 @@
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.4.3",
"@testing-library/jest-dom": "^6.4.2",
"@types/supertest": "^2.0.11",
"@vitejs/plugin-react": "^4.0.0",
"jsdom": "^16.0.0",
@ -59,7 +60,6 @@
"supertest": "^6.1.6",
"vite": "^5.0.0",
"vitest": "^1.4.0",
"vitest-dom": "^0.1.1",
"ws": "^8.13.0"
},
"gitHead": "d0b4efe4be55f8c79a98a331d99d9f8cf99021a1"

View File

@ -1,7 +1,7 @@
import '@testing-library/jest-dom/vitest';
import { configure } from '@testing-library/react';
import dotenv from 'dotenv';
import { vi } from 'vitest';
import 'vitest-dom/extend-expect';
/**
* TypeError: URL.createObjectURL is not a function