All Projects β†’ aelbore β†’ Esbuild Jest

aelbore / Esbuild Jest

A Jest transformer using esbuild

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Esbuild Jest

Jest Expect Message
Add custom message to Jest expects πŸƒπŸ—―
Stars: ✭ 240 (+140%)
Mutual labels:  jest, test
jest-launchdarkly-mock
Easily unit test LaunchDarkly feature flagged components with jest
Stars: ✭ 14 (-86%)
Mutual labels:  jest, test
Jest Html Reporters
🌈 Reporter for jest test framework. 🌈
Stars: ✭ 245 (+145%)
Mutual labels:  jest, test
Javascript Testing Best Practices
πŸ“—πŸŒ 🚒 Comprehensive and exhaustive JavaScript & Node.js testing best practices (August 2021)
Stars: ✭ 13,976 (+13876%)
Mutual labels:  jest, test
Enzyme
JavaScript Testing utilities for React
Stars: ✭ 19,781 (+19681%)
Mutual labels:  jest, test
Snap Shot
Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
Stars: ✭ 170 (+70%)
Mutual labels:  jest, test
xv
❌ βœ”οΈ zero-config test runner for simple projects
Stars: ✭ 588 (+488%)
Mutual labels:  jest, test
Jest Html Reporter
Jest test results processor for generating a summary in HTML
Stars: ✭ 161 (+61%)
Mutual labels:  jest, test
puppeteer-screenshot-tester
Small library that allows us to compare screenshots generated by puppeteer in our tests.
Stars: ✭ 50 (-50%)
Mutual labels:  jest, test
reducer-tester
Utilities for testing redux reducers
Stars: ✭ 19 (-81%)
Mutual labels:  jest, test
Gest
πŸ‘¨β€πŸ’» A sensible GraphQL testing tool - test your GraphQL schema locally and in the cloud
Stars: ✭ 109 (+9%)
Mutual labels:  jest, test
React Generate Props
Generate default props based on your React component's PropTypes
Stars: ✭ 23 (-77%)
Mutual labels:  jest, test
Vuex Mock Store
βœ…Simple and straightforward Vuex Store mock for vue-test-utils
Stars: ✭ 246 (+146%)
Mutual labels:  jest, test
walrus
πŸŽ‰ Cli development framework.
Stars: ✭ 17 (-83%)
Mutual labels:  jest, test
Jest In Case
Jest utility for creating variations of the same test
Stars: ✭ 902 (+802%)
Mutual labels:  jest, test
Tyu
Unit test with no initial configuration.
Stars: ✭ 89 (-11%)
Mutual labels:  jest, test
Tre
[AKBC 19] Improving Relation Extraction by Pre-trained Language Representations
Stars: ✭ 95 (-5%)
Mutual labels:  transformer
Simple React Calendar
A simple react based calendar component to be used for selecting dates and date ranges
Stars: ✭ 97 (-3%)
Mutual labels:  jest
Eqtransformer
EQTransformer, a python package for earthquake signal detection and phase picking using AI.
Stars: ✭ 95 (-5%)
Mutual labels:  transformer
Kotlinfixture
Fixtures for Kotlin providing generated values for unit testing
Stars: ✭ 94 (-6%)
Mutual labels:  test

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'
        }
      } 
    ]
  }
}

Note: if you are using tsconfig.json and jsconfig.json with "paths", Please look alias-hq and there documentation https://github.com/davestewart/alias-hq/blob/master/docs/integrations.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].