typewebjest

0.5.8 • Public • Published

type(script)web(pack)jest helpers

There's documentation that has you creating a bunch of files. Here are files you can use without polluting your pristine project.

Usage, in your jest config:

...
    setupFiles: ['typewebjest/polyfills'],
...
    transform: {
        '^.+\\.(js|jsx|ts|tsx)$': 'typewebjest/transforms/ts',
        '^.+\\.css$': 'typewebjest/transforms/css',
        '^(?!.*\\.(js|jsx|mjs|css|json)$)': 'typewebjest/transforms/file'
    },
...

Package Sidebar

Install

npm i typewebjest

Weekly Downloads

2

Version

0.5.8

License

ISC

Unpacked Size

3.62 kB

Total Files

11

Last publish

Collaborators

  • kzantow