0.2.9 • Published 6 years ago

babel-plugin-s2s-jest-unit-test-case v0.2.9

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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

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

IN:

// this is test file

OUT:

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

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

Options

from

type: string required: true

Set target.js path

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

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago