6.46.8 • Published 4 days ago

@gasket/plugin-mocha v6.46.8

Weekly downloads
41
License
MIT
Repository
github
Last release
4 days ago

@gasket/plugin-mocha

Creates a mocha, nyc, sinon, chai based testing environment for your Gasket application.

Installation

This plugin should only be used during the create command for new apps.

gasket create <app-name> --plugins @gasket/plugin-mocha

Usage

When you create a new gasket application that is configured with the mocha plugin it will prepare it with a mocha based testing environment. It will add the following scripts to the package.json:

  • npm test, Runs the .test.js files in your test folder and generates coverage information of each of the files you test.
  • npm run test:runner Same as npm test, but without coverage information.
  • npm run test:watch Same as npm run test:runner but now watches your tests and automatically re-runs the tests when changes are detected.

The following test utilities are included:

  • chai Installed as default assertion framework using the expect syntax.
  • sinon Create spies, stubs and mocks.
  • enzyme Easier to assert, manipulate, and traverse your React Components.

The tests are automatically processed with babel using the .babelrc that is in the root of your application. We've also configured enzyme for the latest support React, and prepared the test environment with jsdom so you can use the mount functionality of enzyme.

License

MIT

7.0.0-next.21

4 days ago

7.0.0-next.9

9 days ago

7.0.0-next.10

9 days ago

7.0.0-next.7

9 days ago

7.0.0-next.11

9 days ago

7.0.0-next.8

9 days ago

7.0.0-next.12

9 days ago

7.0.0-next.13

9 days ago

7.0.0-next.6

9 days ago

7.0.0-next.20

9 days ago

7.0.0-next.5

10 days ago

6.46.8

11 days ago

7.0.0-next.4

12 days ago

7.0.0-next.3

16 days ago

7.0.0-next.2

23 days ago

7.0.0-next.1

24 days ago

7.0.0-next.0

24 days ago

6.46.7

1 month ago

7.0.0-cli.7

2 months ago

7.0.0-cli.6

2 months ago

6.46.1-cli.0

2 months ago

7.0.0-cli.5

2 months ago

7.0.0-cli.4

2 months ago

7.0.0-cli.1

2 months ago

7.0.0-cli.0

2 months ago

7.0.0-cli.3

2 months ago

7.0.0-cli.2

2 months ago

7.0.0-canary.1

2 months ago

6.45.0

4 months ago

6.39.0

12 months ago

6.38.1

1 year ago

6.36.1

1 year ago

6.38.0

1 year ago

6.34.6

2 years ago

6.35.0

1 year ago

6.34.5

2 years ago

6.34.3

2 years ago

6.34.4

2 years ago

6.34.2

2 years ago

6.21.0

2 years ago

6.24.0

2 years ago

6.12.0

2 years ago

6.10.1

2 years ago

6.10.0

2 years ago

6.16.0

2 years ago

6.14.0

2 years ago

6.17.0

2 years ago

6.17.1

2 years ago

6.0.12

3 years ago

6.0.0

3 years ago

6.0.0-canary.13

3 years ago

6.0.0-canary.4

3 years ago

6.0.0-canary.2

4 years ago

6.0.0-canary.0

4 years ago

5.6.0

4 years ago

5.1.3

4 years ago

5.0.2

4 years ago

5.0.0

4 years ago

5.0.0-canary.4

4 years ago

5.0.0-canary.3

4 years ago

5.0.0-canary.2

4 years ago

5.0.0-canary.1

4 years ago

5.0.0-canary.0

4 years ago