0.2.0 • Published 7 years ago

jscodeshift-ava-to-jest v0.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

jscodeshift-ava-to-jest

A jscodeshift codemod that transforms test files from AVA to Jest.

Deprecation Warning

I no longer maintain this package. As a great, more feature complete alternative, I recommend https://github.com/skovhus/jest-codemods.

Install

Get jscodeshift-ava-to-jest from NPM

npm install --save-dev jscodeshift-ava-to-jest

Usage

TBD: Explain how this module can be used in an existing project.

Why?

It all started with a tweet, followed by a suggestion by Christoph Pojer.

Supported AVA Assertions

Contributing

Project structure

ava-tests: Contains tests written in AVA.

jest-tests: Contains generated Jest files.

src: Contains jscodeshift helper functions.

transform.js: The entry point for jscodeshift.

Run tests

npm test: Transforms tests from AVA to Jest. In more detail:

  1. Runs ava on all files in ava-tests to make sure the AVA tests are valid.
  2. Deletes all files in jest-tests.
  3. Copies all files from ava-tests to jest-tests.
  4. Runs jscodeshift on all files in jest-tests.
  5. Runs jest on all files in jest-tests to make sure the Jest tests are valid.
0.2.0

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago