angular-cn/tools/testing
Greg Magolan 9bb349e1c8 refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)
The major one that affects the angular repo is the removal of the bootstrap attribute in nodejs_binary, nodejs_test and jasmine_node_test in favor of using templated_args --node_options=--require=/path/to/script. The side-effect of this is that the bootstrap script does not get the require.resolve patches with explicitly loading the targets _loader.js file.

PR Close #34589
2020-01-10 08:31:59 -08:00
..
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
README.md feat(ivy): first steps towards ngtsc mode (#23455) 2018-04-25 13:25:33 -07:00
init_browser_spec.ts fix(core): Remove static dependency from @angular/core to @angular/compiler (#26734) 2018-10-31 14:15:06 -04:00
init_node_no_angular_spec.ts build(bazel): cleanup the jasmine bootstrap code (#28906) 2019-02-21 17:59:17 -08:00
init_node_spec.ts refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589) 2020-01-10 08:31:59 -08:00

README.md

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.