1.0.0 • Published 4 years ago

mocku v1.0.0

Weekly downloads
318
License
MIT
Repository
github
Last release
4 years ago

mocku

Mocking library.

Install

$ yarn add --dev mocku

Usage

import { mock, deleteFromCache } from 'mocku'

const unmock = mock('./file', {
  './file2': {
    default: 'file2'
  },
  fs: {
    readFile: 'readFile'
  }
})

import('./file')
  .then(console.log)
  .then(() => {
    unmock()

    return import('./file')
  })
  .then(console.log)
  .catch(console.error)
1.0.0

4 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago