Skip to content

Commit c0be266

Browse files
committed
Fix tests failing when functions contain cacheLife
1 parent 0af74df commit c0be266

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jest.setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ jest.mock("react", () => {
1212
// Override untable_cache method to avoid caching in tests
1313
jest.mock("next/cache", () => ({
1414
unstable_cache: (fn) => fn,
15+
cacheLife: jest.fn(),
1516
}));

0 commit comments

Comments
 (0)