6to5-jest

6to5 jest plugin

Usage no npm install needed!

<script type="module">
  import to5Jest from 'https://cdn.skypack.dev/6to5-jest';
</script>

README

6to5-jest

6to5 jest plugin

Usage

Make the following changes to package.json:

{
  "dependencies": {
    "6to5-jest": "*",
    "jest": "*"
  },
  "scripts": {
    "test": "jest"
  },
  "jest": {
    "scriptPreprocessor": "<rootDir>/node_modules/6to5-jest",
    "testFileExtensions": ["es6", "js"],
    "moduleFileExtensions": ["js", "json", "es6"]
  }
}

And run:

$ npm install

And you're good to go!