Complete the code to import the testing module in NestJS.
import { Test, TestingModule } from '@nestjs/[1]';
Complete the code to create a testing module with a database provider.
const module: TestingModule = await Test.createTestingModule({ providers: [[1]] }).compile();Fix the error in the test setup by completing the database connection string.
await module.get(DatabaseProvider).connect([1]);Fill both blanks to mock the database service and clear data before each test.
jest.mock('[1]'); beforeEach(async () => { await databaseService.[2](); });
Fill all three blanks to create a test database connection, run migrations, and close connection after tests.
await connection.[1](); await connection.[2](); afterAll(async () => { await connection.[3](); });
