Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-test-runner-schematics

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-test-runner-schematics

Schematics for ng-test-runner

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

ng-test-runner-schematics

Build Status

About

Schematics for ng-test-runner. It generates Angular Component with spec where ng-test-runner is configured and ready to run.

Installation

ng add ng-test-runner-schematics

Usage

Test for Presentational Component

ng g ng-test-runner-schematics:component my-compoment

Test for Smart Component (that uses http)

ng g ng-test-runner-schematics:component --server my-compoment 

Test with speed hack

It decreases tests execution time by ~40%. For details see https://github.com/angular/angular/issues/12409#issuecomment-383607643 (and full discussion)

ng g ng-test-runner-schematics:component --fast my-compoment 

Options

OptionDescription
--server=true|falseFlag to indicate if a sinon server is added to spec.
Default: false
--fast=true|falseFlag to indicate if speed hack should be added to spec.
Default: false
You can also use all Angular CLI component options (they are passed to default CLI schematic). For list of flags check Component documentation.

Keywords

FAQs

Package last updated on 05 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc