aron-web-jest

1.6.0 • Public • Published

aronrepo

Aron's jest preset for web

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


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

NPM Version

Package Sidebar

Install

npm i aron-web-jest

Homepage

aron.tw

Weekly Downloads

65

Version

1.6.0

License

MIT

Unpacked Size

5.99 kB

Total Files

3

Last publish

Collaborators

  • 1aron