This repository was archived by the owner on Nov 17, 2022. It is now read-only.
This repository was archived by the owner on Nov 17, 2022. It is now read-only.
Document testing Angular components with TestBed #1370
Open
Description
Please, tell us what's the problem?
- A typo
- Wrong documentation
- Improvement of existing article
- Missing documentation
- New article needed
Please, tell us more details
Document using TestBed to test Angular components in NativeScript. Here are some important things that this article should cover:
- Add testing to your project. Probably just point to https://docs.nativescript.org/tooling/testing
- Add TestBed.
- Create a file with TestBed init code. Example: https://github.com/NativeScript/nativescript-angular/blob/master/tests/app/tests/test-main.ts
- Include it in karma.config. Example: https://github.com/NativeScript/nativescript-angular/blob/master/tests/karma.conf.js#L16
- Show how to use the helper methods from
nativescript-angular/testing
to write a test-suite. Example: https://github.com/NativeScript/nativescript-angular/blob/master/tests/app/tests/list-view-tests.ts - Point to some external in depth article of using TestBed, like https://angular.io/guide/testing
- Talk about NativeScript specific limitations and differences if there are such.