japa-ts-mock
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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
  }
}

Readme

Keywords

Package Sidebar

Install

npm i japa-ts-mock

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.51 kB

Total Files

5

Last publish

Collaborators

  • diegohenrique