2 Commits

Author SHA1 Message Date
Paul Gschwendtner d3bd820ea3 refactor: update zone.js and tests to work with ESM (#48538)
* Adjusts tests to no longer rely on CommonJS features. Switches them to
  ESM
* Updates test initialization files to not double-initialize Jasmine now
  that bootstrap files are loaded after Jasmine. The `jasmine.boot`
  setup was hacky from `rules_nodejs` and will break in the future
  regardless if we e.g. use `rules_js` with actual unmodified `jasmine`.

PR Close #48538
2022-12-19 20:12:37 +00:00
Paul Gschwendtner 0326c3b4fc build: update jasmine_node_test macro to support ESM (#48538)
Note: `--require` does not work for ESM. `--import` does not exist
in the current Node versions. Started being available in NodeJS v19.

A custom entry-point script, already supported by dev-infra, simplifies
the whole logic and solves the ESM case.

PR Close #48538
2022-12-19 20:12:34 +00:00