1.0.14 • Published 2 years ago

@cloudventure/jest-transformer-esbuild v1.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

jest-transformer-esbuild

A simple Jest transformer using esbuild.

Supports:

  • mocks
  • istanbul ignore comments, see below for details
  • sync and async transformers
  • Jest ESM mode

istanbul ignore comments should be defineds as multiline legal comments

/*! istanbul ignore next */

Install

npm install --save-dev @cloudventure/jest-transformer-esbuild

yarn add -D @cloudventure/jest-transformer-esbuild

Usage

jest.config.json example:

{
    "transform": {
        "^.+\\.tsx?$": ["@cloudventure/jest-transformer-esbuild"]
    }
}

ESM

Please follow this guide for enabling ESM for Jest https://jestjs.io/docs/ecmascript-modules.

jest.config.json example:

{
    "transform": {
        "^.+\\.tsx?$": ["@cloudventure/jest-transformer-esbuild"]
    },
    "extensionsToTreatAsEsm": [".ts", ".tsx"]
}
1.0.14

2 years ago

1.0.11

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.10

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago