Skip to content

mochajs/mocha-examples

Folders and files

Image for: Folders and files
NameName
Last commit message
Last commit date

Latest commit

Image for: Latest commit
 

History

Image for: History
190 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image for: Repository files navigation

Mocha examples

A set of examples to help demonstrate common configurations using Mocha. They should all run out-the-box.

Examples

Image for: Examples

The most straightforward example is "Hello World". Additional examples include:

Adding a new example

Image for: Adding a new example

Follow the below steps:

  1. Clone this repo locally
  2. Create your folder under packages/
  3. Run npm init
  4. Now build your application and open a PR (its npm test will automatically be run in CI).

Linting

Image for: Linting

There is generally no linting requirement for each example, but we recommend running prettier. You can install and run it with:

npm install prettier
prettier --write .

Requirements

Image for: Requirements

Each example application will have its own package dependencies but also a version of Node.js it was designed and built from.

Reporting a bug?

Image for: Reporting a bug?

Feel free to send a branch to supply an MCVE from one of the applications.

About

Image for: About

Working examples of common configurations using mocha ☕️

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

Image for: Releases
No releases published

Sponsor this project

Image for: Sponsor this project

Packages

Image for: Packages 0
No packages published

Contributors 18

Image for: Contributors 18