Files
electron/spec
Samuel AttardandClaude 93b46d3056 test: assert that import and require expose the same electron module (#54166)
The `electron` module that ES module code sees is produced by wrapping the
CommonJS one, so both should expose exactly the same names bound to
exactly the same objects. Nothing checked that until now; esm-spec only
verified that the imports do not throw.

A new fixture app loads `electron` (and the process-specific
`electron/main`, `/common`, `/renderer`, `/utility` aliases) through both
`import()` and `require()` in the main process, a utility process and a
non-sandboxed renderer preload, and reports any export that only one
side has, any export that is not the identical value on both sides, and
a default import that is not the `require()` exports object. esm-spec
asserts the report is empty for each process type.

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-21 13:09:45 -07:00
..
2026-08-26 15:36:04 -04:00