aron-web-jest
v1.6.0
Published
Aron's jest preset for web
Downloads
130
Maintainers
Readme
Getting Started
npm install aron-web-jest -D
Configuration
Create a jest.config.ts
file in your project root and preset aron-web-jest
:
export default {
preset: 'aron-web-jest'
}
Preset
module.exports = {
testEnvironment: 'jsdom',
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest'
},
globals: {
'ts-jest': {
tsConfig: {
importHelpers: true
}
}
}
}