Coder Social home page Coder Social logo

babel-7-jest's Introduction

babel-7-jest

Babel jest plugin

babel-jest didn't work with @babel/* packages so I made it to do so.

Setup

npm install --save-dev babel-7-jest

Add it to your jest configuration like this:

"jest": {
  "transform": {
    ".js$": "babel-7-jest"
  }
}

A minimal package.json would look like this:

{
  "name": "example",
  "version": "0.0.1",
  "description": "Example of jest and babel 7",
  "main": "server.js",
  "scripts": {
    "test": "jest",
    "dev:test": "jest --watch"
  },
  "jest": {
    "transform": {
      ".js$": "babel-7-jest"
    }
  },
  "author": "Sneezoo",
  "license": "MIT",
  "devDependencies": {
    "@babel/core": "^7.0.0-beta.31",
    "babel-7-jest": "^21.3.1",
    "jest": "^21.2.1"
  },
  "dependencies": {}
}

Be aware of @babel/core, which you will need to add to your devDepenencies!

For more information have a look at the jest docs

babel-7-jest's People

Contributors

aaronabramov avatar adalbertoteixeira avatar anilreddykatta avatar bchensyd avatar bestander avatar bradchristensen avatar browniefed avatar cpojer avatar danez avatar ericnakagawa avatar gaearon avatar haroenv avatar jbreckel avatar jsynowiec avatar kentaromiura avatar keyz avatar kwonoj avatar mbrio avatar mpontus avatar niieani avatar oscarmorrison avatar pbarbiero avatar simenb avatar sneezoo avatar stipsan avatar thymikee avatar timreynolds avatar vutran avatar zertosh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.