feat(test): Add an external version of the test library

Adds test adapters for TypeScript and JavaScript only, exported
as part of the test_lib module. These work with the Jasmine test
framework, and allow use of the test injector within test blocks
via the `inject` function.

See #4572, #4177, #4035, #2783

This includes the TestComponentBuilder. It allows using the
test injector with Jasmine bindings, and waits for returned
promises before completing async test blocks.
This commit is contained in:
Julie Ralph
2015-10-08 15:33:17 -07:00
parent eb2c15786e
commit a1fa2e472f
12 changed files with 844 additions and 303 deletions

View File

@ -6,7 +6,8 @@
* This module is not included in the `angular2` module; you must import the test module explicitly.
*
*/
export * from './src/test_lib/test_lib';
export * from './src/test_lib/test_lib_public';
export * from './src/test_lib/test_component_builder';
export * from './src/test_lib/test_injector';
export * from './src/test_lib/fake_async';
export * from './src/test_lib/utils';