Skip to content

Commit

Permalink
test: remove hookTimeout and use real timers afterEach
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvieirasilva committed Aug 9, 2024
1 parent 7f4d117 commit ba49916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ describe('migration generator', () => {
vi.useFakeTimers().setSystemTime(new Date('2023-01-01 12:00:00').getTime());
});

afterEach(() => {
vi.useRealTimers();
});

it('should run successfully', async () => {
await generator(appTree, options);

Expand Down
1 change: 0 additions & 1 deletion packages/data-migration/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
setupFiles: ['../../tests/setup.ts'],
reporters: ['default'],
hookTimeout: 20000,
coverage: {
enabled: true,
reporter: [
Expand Down

0 comments on commit ba49916

Please sign in to comment.