AVA API for Jest
MIT License
AVA API for Jest
Very simple & stupid proxy API. ** ⚠️ Not everything is mapped yet.**
Take a look at the UNTESTED file.
$ npm install --save-dev jest babel-jest jest-ava-api
// VERY EASY, JUST REPLACE "ava" by "jest-ava-api" and you are done.
import test from "jest-ava-api"
test("message", (t) => {
t.truthy(value)
})
Jest provides a "window" object, unlike AVA, so you might need to use this option http://facebook.github.io/jest/docs/api.html#testenvironment-string.
Not also that AVA try to test **/__tests__/*.js
,
while Jest try to test **/__tests__/**/*.js
so you might need to ignore fixtures if you have some, like this
"testPathIgnorePatterns": [
"/fixtures/"
]
$ npm test
).