Have ideas to improve npm?Join in the discussion! »

@swc-node/jest
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@swc-node/jest

Usage

// jest.config.js

module.exports = {
  transform: {
    '^.+\\.(t|j)sx?$': ['@swc-node/jest'],
  },
}

Configuration

Configuration can be passed as a second argument to transform:

// jest.config.js

module.exports = {
  transform: {
    '^.+\\.(t|j)sx?$': [
      '@swc-node/jest',

      // configuration
      {
        dynamicImport: true,
        react: {
          pragma: 'h',
        },
      },
    ],
  },
}

List of all of the available configuration options.

Install

npm i @swc-node/jest

DownloadsWeekly Downloads

8,668

Version

1.1.0

License

MIT

Unpacked Size

10.1 kB

Total Files

8

Last publish

Collaborators

  • avatar