s2s plugin: create jest test case from source
$ npm install --save-dev babel-plugin-s2s-jest-unit-test-case
export function sum(a, b) {
return a + b
}
// this is test file
// this is test file
import { sum } from './target'
test('sum', () => {
const result = sum()
expect(result).toBe(null)
})
type: string
required: true
Set target.js path
If you use s2s
, you don't use this option. s2s handle it automatically.