Skip to content

Commit 3268f5b

Browse files
committed
chore(src): add coverage exception to polyfill
1 parent fc6a72b commit 3268f5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if (!globalThis.AsyncLocalStorage) {
2727
// ? we don't see a .cache() function, we'll polyfill it.
2828
// * https://github.com/Xunnamius/next-test-api-route-handler/issues/1167
2929
// {@symbiote/notInvalid react} // ? We assume this is coming from Next
30+
// istanbul ignore next
3031
if (!require('react').cache) {
3132
require('react').cache = function (fn: (args: never[]) => unknown) {
3233
return function (...args: never[]) {

0 commit comments

Comments
 (0)