update minio coverage cronjob
Backend SonarQube Check testing / sonar-check (push) Has been cancelled Details

This commit is contained in:
Syifa 2026-01-09 10:24:08 +07:00
parent f7ba7f5de6
commit 7f4350fba8
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,9 @@
// ================= MOCK GLOBAL =================
jest.mock('node-cron', () => ({
schedule: jest.fn(() => ({
start: jest.fn(),
stop: jest.fn(),
})),
}));
// MOCK PREFIX (ESM)
jest.mock('../app/static/prefix.js', () => ({
@ -26,7 +31,6 @@ jest.mock('@prisma/client', () => {
};
});
// ================= TEST =================
test('load backend without crashing', () => {
require('../index');
expect(true).toBe(true);