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

jasmine-ts

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-ts

Execute jasmine with ts-node

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-7.44%
Maintainers
1
Weekly downloads
 
Created
Source

jasmine-ts

Build Status

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

    node_modules/.bin/jasmine-ts init
    

    Note: This module enables the configuration support of reporters. For example, if you want to use the jasmine-spec-reporter, you can add a reporters array to the jasmine.json file like this:

    {
      "reporters": [
        {
          "name": "jasmine-spec-reporter#SpecReporter",
          "options": {
            "displayStacktrace": "all"
          }
        }
      ]
    }
    

    If the reporters are not the default export of the module, you can reference another export by using the # separator.

  • Run the tests

    npm test
    

Note

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

typings i -DG dt~jasmine

Keywords

FAQs

Package last updated on 02 May 2017

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