mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ff80ced26e
For every `ts_library` target we expose a shorthand that grants access to the JS files because `DefaultInfo` of a ts library only exposes the `.d.ts` files. We rename this away from `es2015` since in practice it's a much higher target these days. Additionally we no longer use the devmode output but rather use the prodmode output which has the explicit `.mjs` output- compatible with ESM. PR Close #48538
The spec helper files here set up the global testing environment prior to the execution of specs.
There are 3 options:
init_node_spec- configures a node environment to test Angular applications with platform-server.init_node_no_angular_spec- configures a node environment for testing without setting up Angular's testbed (no dependency on Angular packages is incurred).init_browser_spec- configures a browser environment to test Angular applications.