Commit 3474523
Fix test_environment assertion to handle ESM dynamic imports
In ESM mode (WASM_ESM_INTEGRATION), the runtime uses dynamic import()
instead of require() for node modules. Update the test_environment
assertion to check for 'import(' when in ESM mode, rather than always
expecting 'require('.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 14fdc3b commit 3474523
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8662 | 8662 | | |
8663 | 8663 | | |
8664 | 8664 | | |
8665 | | - | |
| 8665 | + | |
| 8666 | + | |
| 8667 | + | |
| 8668 | + | |
| 8669 | + | |
| 8670 | + | |
8666 | 8671 | | |
8667 | 8672 | | |
8668 | 8673 | | |
| |||
0 commit comments