0.1.0 • Published 8 years ago
jest-ava-api v0.1.0
jest-ava-api
AVA API for Jest
Very simple & stupid proxy API. ⚠️ Not everything is mapped yet.
Take a look at the UNTESTED file.
Installation
$ npm install --save-dev jest babel-jest jest-ava-api
Usage
// 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)
})
⚠️ Notes
Jest provides a "window" object, unlike AVA.
By default, Jest try to preprocess node_modules
, so you might need this:
"jest": {
"preprocessorIgnorePatterns": [
"node_modules"
],
},
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/"
]
CONTRIBUTING
- ⇄ Pull/Merge requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.
- Pull/Merge requests must be accompanied by passing automated tests (
$ npm test
).
CHANGELOG
LICENSE
0.1.0
8 years ago