Skip to content

Commit 0cd55ef

Browse files
Update outdated code comment mentioning findUpSync (#12709)
1 parent 1c2d93d commit 0cd55ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/wrangler/src/__tests__/config-cache.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ describe("config cache", () => {
7070
expect,
7171
}) => {
7272
// Don't create node_modules - this forces .wrangler/cache
73-
// Note: findUpSync may find a parent node_modules, but we're testing
74-
// the case where there's no existing cache in any found node_modules
73+
// Note: wrangler, when looking up the filesystem, may find a parent node_modules,
74+
// but we're testing the case where there's no existing cache in any found node_modules
7575
const cacheFolder = getCacheFolder();
7676
// In a clean temp directory with no node_modules, should use .wrangler/cache
77-
// However, findUpSync may find a parent node_modules, so we just verify
78-
// that getCacheFolder returns a valid path
77+
// However, wrangler, when looking up the filesystem, may find a parent node_modules,
78+
// so we just verify that getCacheFolder returns a valid path
7979
expect(cacheFolder).toBeTruthy();
8080
expect(typeof cacheFolder).toBe("string");
8181
});

0 commit comments

Comments
 (0)