Skip to content

Prisma Cleaner is a utility for cleaning database with Prisma in testing. You can use in Jest or Mocha, etc.

Notifications You must be signed in to change notification settings

moekiorg/prisma-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prisma Cleaner

Prisma Cleaner is a utility for cleaning database with Prisma in testing. You can use in Jest or Mocha, etc.

Setup

npm i -D prisma-cleaner

Usage

import { PrismaCleaner } from 'prisma-cleaner'

const cleaner = new PrismaCleaner()

beforeEach(async () => {
  await cleaner.clean()
})

About

Prisma Cleaner is a utility for cleaning database with Prisma in testing. You can use in Jest or Mocha, etc.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published