Skip to content

Updated fetch fix test and sdk#1130

Merged
pyramation merged 1 commit into
mainfrom
fix/update-tests-fetch-fix
May 11, 2026
Merged

Updated fetch fix test and sdk#1130
pyramation merged 1 commit into
mainfrom
fix/update-tests-fetch-fix

Conversation

@NorOldBurden
Copy link
Copy Markdown
Contributor

No description provided.

@pyramation pyramation merged commit fd444da into main May 11, 2026
55 checks passed
@pyramation pyramation deleted the fix/update-tests-fetch-fix branch May 11, 2026 10:03
yyyyaaa added a commit that referenced this pull request May 12, 2026
…ness (#1138)

Replace 3 weak tests from PR #1130 (hand-written replica, regex-extracted
new Function() eval, standalone wrong-precedence demo) with 2 behavioral
tests that compile and run the actual generated FetchAdapter in a node:vm
sandbox. The remaining regex test is kept as a static source-text guard.

The new tests exercise both branches of the generated constructor
expression `(fetchFn ?? createFetch()).bind(globalThis)` through the real
generated class, catching regressions that string-matching alone misses
(e.g. the precedence bug `fetchFn ?? createFetch().bind(globalThis)`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants