mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
5c670b8f77
The `packages/core/test` test code was relying on non-ESM compatible features like untyped `require` calls. We switch these to ESM `import` statements/expressions and make it strongly typed. It's a trade-off between type-safety and the dependency graph- but it feels more reasonable typing this properly to actually benefit from the type system provided by using TypeScript. Additionally, we align the IDE tsconfigs to use `esnext` as module because that is what we use in Bazel and it allows us to use top-level await. PR Close #48521