fix: prevent test matcher warning (#3893)

* fix: prevent test matcher warning

* chore: add node types

* chore: update Jest related packages

* chore: run pnpm install
This commit is contained in:
Ryo Matsukawa 2024-10-29 01:44:08 +09:00 committed by GitHub
parent 5ac433a905
commit 8de427b81a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 137 additions and 576 deletions

View File

@ -19,10 +19,5 @@ module.exports = {
},
transformIgnorePatterns: ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"],
setupFilesAfterEnv: ["@testing-library/jest-dom", "./scripts/setup-test.ts"],
globals: {
"ts-jest": {
tsconfig: "tsconfig.json",
},
},
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"],
};

View File

@ -70,14 +70,13 @@
"@react-types/link": "^3.4.4",
"@react-types/shared": "3.23.1",
"@storybook/react": "^7.4.6",
"@swc-node/jest": "^1.5.2",
"@swc/core": "^1.3.35",
"@swc/jest": "^0.2.24",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/jest-dom": "^6.6.2",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.13",
"@types/jest": "^29.5.14",
"@types/node": "^15.12.4",
"@types/react": "^18.0.1",
"@types/react-dom": "^18.0.0",
@ -97,7 +96,7 @@
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jest": "^24.7.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
@ -114,8 +113,8 @@
"husky": "^8.0.1",
"intl-messageformat": "^10.1.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^28.1.3",
"jest-watch-typeahead": "1.1.0",
"jest-environment-jsdom": "^29.7.0",
"jest-watch-typeahead": "2.2.2",
"lint-staged": "^13.0.3",
"npm-check-updates": "^16.10.18",
"npm-run-all": "^4.1.5",

696
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"types": ["@testing-library/jest-dom", "node"],
"lib": ["dom", "esnext"],
"declaration": true,
"sourceMap": true,