Skip to content

Commit

Permalink
test: release data coverage (7130) (#7150)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 authored Oct 31, 2024
1 parent 63e12e7 commit d97bede
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/site/next-data/generators/__tests__/releaseData.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ import generateReleaseData from '@/next-data/generators/releaseData.mjs';
jest.mock('@nodevu/core');

describe('generateReleaseData', () => {
beforeAll(() => {
jest.useFakeTimers();
jest.setSystemTime(new Date('2024-10-18'));
});

afterAll(() => {
jest.useRealTimers();
});

test('generates release data with correct status', async () => {
const mockNodevuOutput = {
14: {
Expand Down

0 comments on commit d97bede

Please sign in to comment.