Skip to content

Commit

Permalink
chore: update @testing-library + lint staged
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunvegda committed Apr 13, 2024
1 parent 2e4aa62 commit 1b823fd
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 146 deletions.
1 change: 1 addition & 0 deletions __tests__/setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@testing-library/jest-dom';
import * as ResizeObserverModule from 'resize-observer-polyfill';

(global as any).ResizeObserver = ResizeObserverModule.default;
Expand Down
5 changes: 1 addition & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ const config: Config = {
'!src/DevTools/Extension/components/Shell/components/AtomViewer/hooks/use.ts',
],
coverageDirectory: './coverage/',
setupFilesAfterEnv: [
'@testing-library/jest-dom/extend-expect',
'<rootDir>/__tests__/setup.ts',
],
setupFilesAfterEnv: ['<rootDir>/__tests__/setup.ts'],
};

export default config;
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,15 @@
"@swc/jest": "^0.2.36",
"@tabler/icons-react": "^3.2.0",
"@tanstack/query-core": "^4.36.1",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.3.1",
"@testing-library/dom": "^10.0.0",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^15.0.2",
"@testing-library/user-event": "^14.5.2",
"@types/base16": "^1.0.5",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.7",
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
"@types/testing-library__jest-dom": "^5.14.9",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"babel-loader": "^9.1.3",
Expand All @@ -143,7 +142,7 @@
"jest-watch-typeahead": "^2.2.2",
"jotai": "^2.8.0",
"jotai-tanstack-query": "^0.7.2",
"lint-staged": "^13.3.0",
"lint-staged": "^15.2.2",
"postcss": "^8.4.38",
"postcss-loader": "^8.1.1",
"postcss-preset-mantine": "^1.14.4",
Expand Down
Loading

0 comments on commit 1b823fd

Please sign in to comment.