Skip to content

Commit

Permalink
jest mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsteinig committed Sep 13, 2024
1 parent 06cca05 commit b24f61a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion air-quality-ui/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
moduleNameMapper: {
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/test/__ mocks __/fileMock.js',
'\\.(css|less)$': 'identity-obj-proxy',
'\\.glsl$': '<rootDir>/test/__mocks__/glslMock.js',
"^.+.(vert|frag|glsl)$": "jest-transform-stub"
},
testPathIgnorePatterns: ['/node_modules/', '/system_tests/'],
setupFiles: ['./jest.setup.ts'],
Expand Down
13 changes: 13 additions & 0 deletions air-quality-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions air-quality-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-transform-stub": "^2.0.0",
"r3f-perf": "^7.2.1",
"ts-jest": "^29.1.4",
"ts-jest-mock-import-meta": "^1.2.0",
Expand Down

0 comments on commit b24f61a

Please sign in to comment.