@tractor-plugins/mocha-specs

1.9.4-tractor-to-playwright.0 • Public • Published

@tractor-plugins/mocha-specs

Plugin for tractor for creating E2E tests with Mocha.

npm version

How to install

npm install @tractor-plugins/mocha-specs --dev

Config

// tractor.conf.js
module.exports = {
    // ...
    mochaSpecs: {

    },
    // ...
};

For more information see here

Development

To set up development, just run yarn from the root of the repository. You can then run the following commands from within the directory, or use lerna run with --scope="@tractor-plugins/mocha-specs.

Build

To build the whole package:

yarn build

Test

To run unit tests:

yarn test
yarn cover # with coverage

To run end-to-end tests:

yarn tractor:test # in one tab
yarn test:e2e # in another tab

To run end-to-end tests in CI mode:

yarn test:e2e:ci # handles the starting and killing of the application for testing

To start tractor:

yarn tractor

Readme

Keywords

none

Package Sidebar

Install

npm i @tractor-plugins/mocha-specs

Weekly Downloads

5

Version

1.9.4-tractor-to-playwright.0

License

MIT

Unpacked Size

204 kB

Total Files

21

Last publish

Collaborators

  • phenomnomnominal
  • trbpro23
  • amy.rowell
  • mzollner
  • deemicksee
  • cgrant_tm
  • savage-tm