Skip to content

Conversation

@Shira-Abrams
Copy link
Collaborator

add server test fo wbesites and preference controllers

@Shira-Abrams Shira-Abrams requested a review from oritb488 August 12, 2024 09:05
import { connectMongo, disconnectMongo } from '../config/db.js';

beforeAll(async () => {
await connectMongo(); // Connects to a database before the tests
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you shouldn't connect to thereal mongo, you should have a mock data and use it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please create mockData to be used in all the tests

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment doesn't fixed yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants