StackVista / typed-cypress

TypeScript typings for Cypress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typed-cypress

TypeScript type definitions for Cypress. Provided by StackState.

Installation

typings install github:StackVista/typed-cypress dt~mocha --global --save

This should write to typings.json something like this:

{
  "globalDependencies": {
    "cypress": "github:StackVista/typed-cypress",
    "mocha": "registry:dt/mocha#2.2.5+20161221010438"
  }
}

Now, depending on your setup, you may need something like this at the top of your spec files (integration/*.ts):

/// <reference path="../typings/index.d.ts" />

About

TypeScript typings for Cypress