29.0.0 • Published 1 year ago
@pandell/jest-config v29.0.0
@pandell/jest-config
Shared testing mocks and helpers for Pandell engineering teams.
Usage
To mock static assets like images, define the following mapping in jest.config.js
:
module.exports = {
// ...
moduleNameMapper: {
// ...
"\\.(jpg|png|svg)$": "@pandell/jest-config/__mocks__/fileMock.js",
}
}
To perform additional setup tasks as defined in @pandell/jest-config/configureTesting.js
, add the following setup definition:
module.exports = {
// ...
setupFilesAfterEnv: [
// ...
"@pandell/jest-config/configureTesting.js"
]
}
29.0.0
1 year ago
27.0.0
2 years ago
11.0.9-alpha.7
2 years ago
11.0.9-alpha.6
2 years ago
11.0.9-alpha.5
2 years ago
12.0.0-next.7
2 years ago