Skip to content

A project using nyc, tape, and typescript in conjunction, including a trivial example to show how to consume the tape module from typescript tests

Notifications You must be signed in to change notification settings

minrwhite/typescript-tape-nyc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript Tape Nyc example project

An example project illustrating a method of using these tools together.

Running

$ npm install
...
$ npm test

Output

See here for pretty HTML output as generated by nyc, or see the output as shown on the console below:

> typescript-tape-example@0.1.0 test /home/benjamin/projects/pnavigator
> nyc --reporter=lcov --require ts-node/register tape tests/**/*-test.{ts,js} | tap-spec; nyc report ---reporter=text


  Widget

    ✔ should take a multiplicand in its constructor
    ✔ should take a multiplier in the multiply() method
    ✔ and should multiply the multipler and multiplicand together


  total:     3
  passing:   3
  duration:  1.3s


-----------|----------|----------|----------|----------|----------------|
File       |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-----------|----------|----------|----------|----------|----------------|
All files  |      100 |      100 |      100 |      100 |                |
 widget.ts |      100 |      100 |      100 |      100 |                |
-----------|----------|----------|----------|----------|----------------|

About

A project using nyc, tape, and typescript in conjunction, including a trivial example to show how to consume the tape module from typescript tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published