Skip to content

Instantly share code, notes, and snippets.

@yurifrl
Created October 31, 2018 17:05
Show Gist options
  • Save yurifrl/b6e262a3a934c6b5e9f1b8c607a85018 to your computer and use it in GitHub Desktop.
Save yurifrl/b6e262a3a934c6b5e9f1b8c607a85018 to your computer and use it in GitHub Desktop.
Ava setup with babel tests with .test suporting async await for tests no for compiled code
{
"name": "name",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "babel src -d dist/ --ignore '**/*.test.js'",
"test": "ava",
"flow": "flow"
},
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/plugin-transform-strict-mode": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-flow": "^7.0.0",
"@babel/register": "^7.0.0",
"ava": "1.0.0-rc.1",
"nodemon": "^1.18.4"
},
"dependencies": {
"ramda": "^0.25.0"
},
"ava": {
"failWithoutAssertions": true,
"concurrency": 5,
"require": [
"@babel/register"
]
},
"babel": {
"presets": [
"@babel/preset-flow",
[
"@babel/preset-env",
{
"exclude": [
"transform-regenerator",
"transform-async-to-generator",
"transform-arrow-functions"
]
}
]
],
"plugins": [
"@babel/plugin-transform-strict-mode"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment