https://github.com/moox/jest-ava-api
AVA API for Jest
https://github.com/moox/jest-ava-api
Last synced: 8 months ago
JSON representation
AVA API for Jest
- Host: GitHub
- URL: https://github.com/moox/jest-ava-api
- Owner: MoOx
- License: mit
- Created: 2016-09-09T12:48:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-13T14:47:46.000Z (almost 10 years ago)
- Last Synced: 2025-09-16T15:06:33.513Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# jest-ava-api
[](https://travis-ci.org/MoOx/js-boilerplate)
[](https://github.com/MoOx/jest-ava-api/blob/master/CHANGELOG.md)
[](https://github.com/MoOx/jest-ava-api)
[](https://gitlab.com/MoOx/jest-ava-api)
[](https://bitbucket.org/MoOx/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
```console
$ npm install --save-dev jest babel-jest jest-ava-api
```
## Usage
```js
// 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, 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
```js
"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](CHANGELOG.md)
## [LICENSE](LICENSE)