test

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestClient

func NewTestClient(databaseUrl string, t *testing.T) (*db.PrismaClient, func())

func RunPrismaMigrateDeploy

func RunPrismaMigrateDeploy(databaseUrl string) error

A bit of a hack, we should call the prisma migration programmatically

Types

type TestEnv

type TestEnv struct {
	TestPool    *dockertest.Pool
	DatabaseUrl string
}

func NewTestEnv

func NewTestEnv() (*TestEnv, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL