Skip to content

diegogit03/japa-ts-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

japa-ts-mock

A mock library built on top of ts-mockito

Installation

Install package from npm registry

npm i japa-ts-mock

Usage

You can use this plugin with the @japa/runner.

import { mocker } from 'japa-ts-mock'
import { configure } from '@japa/runner'

configure({
  plugins: [mocker()]
})

In japa-types.ts write this:

import { mocker } from 'japa-ts-mock'

declare module '@japa/runner' {
  interface TestContext {
    mocker: Mocker
  }
}

About

A japa plugin for mocking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published