1.0.14 • Published 6 months ago

@cloudventure/jest-transformer-esbuild v1.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months 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

6 months ago

1.0.11

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.10

1 year ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago