Skip to content

Commit

Permalink
unit tests cont.
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Sep 12, 2023
1 parent aefec60 commit 984855f
Show file tree
Hide file tree
Showing 24 changed files with 807 additions and 782 deletions.
4 changes: 3 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const customJestConfig: Config = {
moduleNameMapper: {
// Handle image imports
// https://jestjs.io/docs/webpack#handling-static-assets
'\\.svg$': '<rootDir>/__mocks__/svgMock.tsx',
'^.+\\.(svg)$': '<rootDir>/__mocks__/svgMock.tsx',
'^__tests__/(.*)$': '<rootDir>/__tests__/$1',
'^@app/(.*)$': '<rootDir>/src/$1',
'^@rainbow-me/rainbowkit$': '<rootDir>/__mocks__/rainbowkitMock.js',
Expand All @@ -33,6 +33,8 @@ const customJestConfig: Config = {
'^@wagmi/core(.*)$': '@wagmi/core-cjs$1',
'^multiformats$': '<rootDir>/node_modules/multiformats/dist/index.min.js',
'^multiformats/(.*)$': '<rootDir>/node_modules/multiformats/src/$1',
'^uint8arrays$':
'<rootDir>/node_modules/.pnpm/[email protected]/node_modules/uint8arrays/cjs/src/index.js',
},
setupFilesAfterEnv: ['<rootDir>/jest/jest.setup.ts'],
setupFiles: ['<rootDir>/jest/setEnvVars.js', 'jest-canvas-mock'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"@openzeppelin/test-helpers": "^0.5.16",
"@playwright/test": "^1.36.2",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.4.3",
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
Expand Down
Loading

0 comments on commit 984855f

Please sign in to comment.