esbuild-jest
Jest plugin to use esbuild for transformation
Last updated 5 years ago by aelbore .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install esbuild-jest 
SYNC missed versions from official npm registry.

esbuild-jest

A Jest transformer using esbuild

With this transformer you can use and transform (ts, js, tsx and jsx) files

npm build status

Install

npm install --save-dev esbuild-jest esbuild

Setting up Jest config file

esbuild-jest transformer should be used in your Jest config file like this:

{
  "transform": {
    "^.+\\.tsx?$": "esbuild-jest"
  }
}

Setting up Jest config file with transformOptions

export interface Options {
  jsxFactory?: string
  jsxFragment?: string
  sourcemap?: boolean | 'inline' | 'external'
  loaders?: {
    [ext: string]: Loader
  },
  target?: string
  format?: string
}
{
  "transform": {
    "^.+\\.tsx?$": [ 
      "esbuild-jest", 
      { 
        sourcemap: true,
        loaders: {
          '.spec.ts': 'tsx'
        }
      } 
    ]
  }
}

Current Tags

  • 0.5.0-beta.2                                ...           beta (5 years ago)
  • 0.5.0                                ...           latest (5 years ago)

19 Versions

  • 0.5.0                                ...           5 years ago
  • 0.5.0-beta.2                                ...           5 years ago
  • 0.5.0-beta.1                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.4.0-beta.1                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.3.0-beta.2                                ...           5 years ago
  • 0.3.0-beta.1                                ...           5 years ago
  • 0.3.0-beta.0                                ...           5 years ago
  • 0.2.2                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.2.0-beta.2                                ...           6 years ago
  • 0.2.0-beta.1                                ...           6 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 9
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |