Socket
Socket
Sign inDemoInstall

@swc-node/jest

Package Overview
Dependencies
3
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @swc-node/jest

swc preprocessor for jest with source map support


Version published
Weekly downloads
46K
increased by7.83%
Maintainers
1
Install size
1.78 MB
Created
Weekly downloads
 

Readme

Source

@swc-node/jest

Downloads

🚀 Help me to become a full-time open-source developer by sponsoring me on Github

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.

Keywords

FAQs

Last updated on 05 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc