Last active
September 16, 2022 21:55
-
-
Save ali-kamalizade/8865c96b611fe0b888eb028f2aa93a72 to your computer and use it in GitHub Desktop.
Jest globalSetup which creates a Docker container before executing any tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// helpful if you use Nx - else you can omit this import | |
import 'tsconfig-paths/register'; | |
import { createDatabaseContainer } from './e2e/testing-setup.helpers'; | |
export default async () => { | |
await createDatabaseContainer(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment