Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRamosAcosta committed Apr 13, 2019
1 parent 0b74e00 commit 32dfadb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Expand Up @@ -2,21 +2,15 @@

[Swc](https://github.com/swc-project/swc) [jest](https://github.com/facebook/jest) plugin

## Usage

If you are already using `jest-cli`, just add `swc-jest` and it will automatically compile JavaScript code using swc.
## Install

```bash
yarn add --dev swc-jest @swc/core
npm install --save-dev swc-jest @swc/core
```

If you would like to write your own preprocessor, uninstall and delete swc-jest and set the [config.transform](https://jestjs.io/docs/configuration#transform-object-string-string) option to your preprocessor.

## Setup

_Note: this step is only required if you are using `swc-jest` with additional code preprocessors._

To explicitly define `swc-jest` as a transformer for your JavaScript code, map _.js_ files to the `swc-jest` module.
You have to define `swc-jest` as a transformer for your JavaScript code, map _.js_ files to the `swc-jest` module.

```json
"transform": {
Expand Down

0 comments on commit 32dfadb

Please sign in to comment.