Skip to content

unirakun/k-redux-saga-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k-redux-saga-tester

CircleCI Coverage Status NPM Version

Test your sagas (redux-saga) with ease, compatible with Jest snapshots!

Examples

import tester from 'k-redux-saga-tester'
import { search } from './mySaga'

describe('mySaga', () => {
  describe('search', () => {
    const test = tester(search)(/* saga params */)

    it('should search and set something', () => {
      const mocks = {
        call: [() => [{ id: 1, name: 'name 1' }, { id: 2, name: 'name 2' }]],
        select: [() => ({ some: 'form', value: true })],
      }

      expect(test(mocks)).toMatchSnapshot()
    })
  })
})

About uni rakun unirakun

uni rakun is created by two passionate french developers.

Do you want to contact them ? Go to their website

Guillaume CRESPEL Fabien JUIF

About

Test your sagas (redux-saga) with ease, compatible with Jest snapshots !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published