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