Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@breautek/jasmine-ts

svi3c20MIT1.0.0

Execute jasmine with ts-node

node, testing, tests, jasmine, typescript

readme

jasmine-ts

Note: This repository is archived. There will not be any more contributions.

CI

A simplification for running jasmine with ts-node.

Installation

npm i -D jasmine-ts

Usage

  • In your package.json file create a test script:

    {
      "scripts": {
        "test": "jasmine-ts \"path/to/specs/**/*.spec.ts\""
      }
    }
  • Initialize jasmine

    npx jasmine-ts init
  • Run the tests

    npm test

Running with istanbul coverage

You can use nyc to check your test coverage.

Example package.json:

{
  "scripts": {
    "test": "nyc  -r lcov -e .ts -x \"*.spec.ts\" jasmine-ts \"path/to/specs/**/*.spec.ts\""
  }
}

Note

You still need to install the typings for jasmine to make the typescript-compiler happy about your specs:

TypeScript 2:

npm i -D @types/jasmine

TypeScript 1:

typings i -DG dt~jasmine

Since 0.1.3 ts-node options are passed through to ts-node.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.4.0 (2021-06-16)

⚠ BREAKING CHANGES

  • required Node 12+

Features

Bug Fixes

0.3.3 (2021-04-25)

Bug Fixes

  • reworked the CLI parameter processing (#61) (d6c28bf)

0.3.2 (2021-03-09)

Bug Fixes

0.3.1 (2020-12-10)

Bug Fixes

  • upgrade ts-node => 9.1.1 (640b339)
  • upgrade yargs 13.2.4 => 16.2.0 (5253798)