techor-web-jest

2.0.6 • Public • Published

techor

Techor's jest preset for web

NPM Version NPM Version NPM package ( download / month ) Follow @mastercorg Github release actions


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
            }
        }
    }
}

NPM Version

Package Sidebar

Install

npm i techor-web-jest

Homepage

aron.tw

Weekly Downloads

18

Version

2.0.6

License

MIT

Unpacked Size

6.07 kB

Total Files

3

Last publish

Collaborators

  • 1aron