Complete the code to import the Express module.
const express = require([1]);To use Express, you must require the 'express' package by its exact name.
Complete the code to create a new Express application instance.
const app = [1]();Calling the imported 'express' function creates a new app instance.
Fix the error in the test setup function to connect to the test database.
beforeAll(async () => {
await [1].connect('mongodb://localhost/testdb');
});Use the 'mongoose' library to connect to MongoDB in tests.
Fill both blanks to properly close the database connection after tests.
afterAll(async () => {
await [1].[2]();
});Use 'mongoose.disconnect()' to close the database connection after tests.
Fill all three blanks to set up and tear down a test database connection correctly.
beforeAll(async () => {
await [1].connect('mongodb://localhost/testdb');
});
afterAll(async () => {
await [2].[3]();
});Use 'mongoose.connect()' to connect and 'mongoose.disconnect()' to close the database connection in tests.
