JS Unit Testing | Part 2 | Configure AVA

preview_player
Показать описание
In this video we'll tell npm how to run our tests with AVA and we'll configure AVA to transpile our tests with babel.

{
"name": "testing",
"version": "1.0.0",
"description": "",
"scripts": {
"test": "ava"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"ava": "^0.24.0",
"babel": "^6.23.0",
"babel-preset-es2015": "^6.24.1"
},

"ava": {
"require": [
"babel-register"
],
"babel": "inherit"
}
}
Рекомендации по теме