Skip to content
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
@vakrilov

Description

@vakrilov

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:

  1. Add testing to your project. Probably just point to https://docs.nativescript.org/tooling/testing
  2. Add TestBed.
    1. Create a file with TestBed init code. Example: https://github.com/NativeScript/nativescript-angular/blob/master/tests/app/tests/test-main.ts
    2. Include it in karma.config. Example: https://github.com/NativeScript/nativescript-angular/blob/master/tests/karma.conf.js#L16
  3. 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
  4. Point to some external in depth article of using TestBed, like https://angular.io/guide/testing
  5. Talk about NativeScript specific limitations and differences if there are such.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions