# babel-plugin-s2s-jest-unit-test-case

> create jest test case from target source

Latest version **0.2.9** (published 2018-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-s2s-jest-unit-test-case
pnpm add babel-plugin-s2s-jest-unit-test-case
yarn add babel-plugin-s2s-jest-unit-test-case
bun add babel-plugin-s2s-jest-unit-test-case
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.9 |
| Published | 2018-06-20 |
| First published | 2017-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 5 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 265 |
| Author | akameco |
| Maintainers | akameco |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-s2s-jest-unit-test-case
- Repository: https://github.com/akameco/s2s
- npm.io page: https://npm.io/package/babel-plugin-s2s-jest-unit-test-case

## Dependencies (5)

- [babylon](https://npm.io/package/babylon.md) ^6.18.0
- [s2s-utils](https://npm.io/package/s2s-utils.md) ^0.6.1
- [babel-types](https://npm.io/package/babel-types.md) ^6.26.0
- [babel-traverse](https://npm.io/package/babel-traverse.md) ^6.26.0
- [lodash.flatten](https://npm.io/package/lodash.flatten.md) ^4.4.0

## Recent versions

- 0.2.9 (latest) — 2018-06-20
- 0.2.8 — 2018-03-20
- 0.2.7 — 2018-01-21
- 0.2.6 — 2017-12-02
- 0.2.5 — 2017-11-12
- 0.2.4 — 2017-11-07
- 0.2.3 — 2017-11-05
- 0.2.2 — 2017-10-31
- 0.2.1 — 2017-10-21
- 0.2.0 — 2017-10-08
- 0.1.0 — 2017-10-08

## README

# babel-plugin-s2s-jest-unit-test-case

> s2s plugin: create jest test case from source

## Install

```
$ npm install --save-dev babel-plugin-s2s-jest-unit-test-case
```

### Example

#### target.js

```js
export function sum(a, b) {
  return a + b
}
```

#### IN:

```js
// this is test file
```

#### OUT:

```js
// this is test file
import { sum } from './target'

test('sum', () => {
  const result = sum()
  expect(result).toBe(null)
})
```

### Options

#### from

type: `string` <br>
required: true

Set target.js path

If you use `s2s`, you **don't** use this option. s2s handle it automatically.

---
_Source: https://npm.io/package/babel-plugin-s2s-jest-unit-test-case · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
