jest-ava-api

0.1.0 • Public • Published

jest-ava-api

Unix Build status Version

Repo on GitHub Repo on GitLab Repo on BitBucket

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).

Readme

Keywords

Package Sidebar

Install

npm i jest-ava-api

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • moox