Skip to content

Commit bfd0997

Browse files
devin-ai-integration[bot]penalosa
authored andcommitted
Add logger.clearHistory() for test isolation in containers tests
Co-Authored-By: smacleod@cloudflare.com <smacleod@cloudflare.com>
1 parent ca5ba19 commit bfd0997

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/wrangler/src/__tests__/dev.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { getWorkerAccountAndContext } from "../dev/remote";
1010
import { COMPLIANCE_REGION_CONFIG_UNKNOWN } from "../environment-variables/misc-variables";
1111
import { FatalError } from "../errors";
1212
import { CI } from "../is-ci";
13+
import { logger } from "../logger";
1314
import { sniffUserAgent } from "../package-manager";
1415
import { mockAccountId, mockApiToken } from "./helpers/mock-account-id";
1516
import { mockConsoleMethods } from "./helpers/mock-console";
@@ -2110,6 +2111,10 @@ describe.sequential("wrangler dev", () => {
21102111
});
21112112

21122113
describe("containers", () => {
2114+
beforeEach(() => {
2115+
logger.clearHistory();
2116+
});
2117+
21132118
const containerConfig = {
21142119
main: "index.js",
21152120
compatibility_date: "2024-01-01",

0 commit comments

Comments
 (0)