mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-14 04:00:42 -04:00
test: inform devs when db connection not established (#60539)
This commit is contained in:
committed by
GitHub
parent
5cb96cf3e0
commit
22724d5dda
@@ -1,6 +1,6 @@
|
||||
import Fastify, { FastifyInstance } from 'fastify';
|
||||
|
||||
import { defaultUserEmail } from '../../jest.utils';
|
||||
import { checkCanConnectToDb, defaultUserEmail } from '../../jest.utils';
|
||||
import { HOME_LOCATION } from '../utils/env';
|
||||
import { devAuth } from '../plugins/auth-dev';
|
||||
import prismaPlugin from '../db/prisma';
|
||||
@@ -19,6 +19,7 @@ describe('dev login', () => {
|
||||
await fastify.register(auth);
|
||||
await fastify.register(devAuth);
|
||||
await fastify.register(prismaPlugin);
|
||||
await checkCanConnectToDb(fastify.prisma);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
||||
Reference in New Issue
Block a user