Skip to content

Instantly share code, notes, and snippets.

@ali-kamalizade
Last active September 16, 2022 21:55
Show Gist options
  • Save ali-kamalizade/8865c96b611fe0b888eb028f2aa93a72 to your computer and use it in GitHub Desktop.
Save ali-kamalizade/8865c96b611fe0b888eb028f2aa93a72 to your computer and use it in GitHub Desktop.
Jest globalSetup which creates a Docker container before executing any tests
// 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