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

Package detail

mocha-ui-exports-auto-describe

dword-design606MIT3.0.0

Like the built-in Mocha exports UI but also adds a describe block per-file.

readme

mocha-ui-exports-auto-describe

npm version Linux macOS Windows compatible Build status Coverage status Dependency status Renovate enabled
Open in Gitpod Buy Me a Coffee PayPal Patreon

Like the built-in Mocha exports UI but also adds a describe block per-file.

Install

# npm
$ npm install mocha-ui-exports-auto-describe

# Yarn
$ yarn add mocha-ui-exports-auto-describe

Usage

Structure your tests as usual:

|-test
  |-index.test.js
  |-cli.test.js

Run mocha. The output will contain describe blocks per-file:

$ mocha --require mocha-ui-exports-auto-describe

  index
    ✓ valid
    ✓ special case
  cli
    ✓ command works
    ✓ options work

  1 passing

Contribute

Are you missing something or want to contribute? Feel free to file an issue or a pull request! ⚙️

Support

Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:

Buy Me a Coffee  If you want to send me a one time donation. The coffee is pretty good 😊.
PayPal  Also for one time donations if you like PayPal.
Patreon  Here you can support me regularly, which is great so I can steadily work on projects.

Thanks a lot for your support! ❤️

See also

  • output-files: Output a tree of files and directories by providing an object. Especially useful for testing with real files.
  • with-local-tmp-dir: Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.
  • expect-mocha-image-snapshot: A wrapper around jest-image-snapshot that makes it compatible to Mocha.
  • jest-image-matcher: A Jest matcher for image comparisons based on pixelmatch. Can also be used with Mocha. Useful for visual regression testing.
  • unify-mocha-output: Adjusts a Mocha output so that it is consistent across platforms and can be used for snapshot testing. Basically adjusts the checkmark symbol and removes time values.

License

MIT License © Sebastian Landwehr

changelog

3.0.0 (2023-06-28)

Bug Fixes

BREAKING CHANGES

  • drop node 12 and 14, esm

2.0.10 (2022-01-12)

Bug Fixes

2.0.9 (2022-01-04)

Bug Fixes

2.0.8 (2021-07-20)

Bug Fixes

2.0.7 (2021-07-06)

Bug Fixes

2.0.6 (2021-06-29)

Bug Fixes

2.0.5 (2021-06-14)

Bug Fixes

2.0.4 (2021-06-09)

Bug Fixes

2.0.3 (2021-05-28)

Bug Fixes

2.0.2 (2021-05-04)

Bug Fixes

  • update dependency output-files to v2 (#31) (9ccb7e8)
  • update dependency with-local-tmp-dir to v4 (#32) (aa6ca7c)

2.0.1 (2021-05-04)

Bug Fixes

  • update dependency @dword-design/functions to v4 (#29) (479c6fb)
  • update dependency unify-mocha-output to v2 (#30) (51587d7)

2.0.0 (2021-05-03)

Bug Fixes

  • update dependency @dword-design/base to v8 (#28) (a18ae7e)

BREAKING CHANGES

  • require Node.js >= 12

Co-authored-by: Renovate Bot bot@renovateapp.com Co-authored-by: Sebastian Landwehr info@dword-design.de Co-authored-by: GitHub Actions actions@github.com

1.0.17 (2021-04-27)

Bug Fixes

1.0.16 (2021-04-26)

Bug Fixes

  • update dependency with-local-tmp-dir to v3 (#24) (aaad963)

1.0.15 (2021-04-12)

Bug Fixes

1.0.14 (2021-03-31)

Bug Fixes

1.0.13 (2021-03-31)

Bug Fixes

1.0.12 (2021-03-23)

Bug Fixes

  • update dependency @dword-design/functions to v3 (#14) (9ec3689)

1.0.11 (2021-03-22)

Bug Fixes

1.0.10 (2021-03-17)

Bug Fixes

1.0.9 (2021-03-11)

Bug Fixes

1.0.8 (2021-02-17)

Bug Fixes

1.0.7 (2020-12-10)

Bug Fixes

  • deps: update dependency execa to v5 (2bf24d9)

1.0.6 (2020-12-10)

Bug Fixes

  • update generated files (4604777)
  • update generated files (2257f45)
  • deps: update dependency mocha to v8 (00e927d)

1.0.5 (2020-12-02)

Bug Fixes

  • config: Update changed files (d5d8794)

1.0.4 (2020-08-26)

Bug Fixes

1.0.3 (2020-07-04)

Bug Fixes

1.0.2 (2020-02-25)

Bug Fixes

  • fix --file import of non-test files (3659b33)

1.0.1 (2020-02-25)

Bug Fixes

1.0.0 (2020-02-25)

Features