Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
import type { NextConfigObject } from '../../../src/config/types';
import { makeProject, removeProjects } from './projectFixture';

Expand All @@ -9,6 +9,14 @@ afterEach(() => {
});

describe('maybeSetUpTunnelRouteRewriteRules', () => {
beforeAll(async () => {
// The first import transforms the whole dependency tree, which can
// take longer than the test timeout on a slow CI runner. A timed-out
// test keeps running and logs into the next test's spies. Imports
// after `vi.resetModules()` reuse these transforms.
await import('../../../src/config/withSentryConfig/getFinalConfigObjectUtils');
});

beforeEach(() => {
vi.restoreAllMocks();
// A fresh module per test, because the function logs each message only once.
Expand Down
Loading