The Wayback Machine - https://web.archive.org/web/20210212155223/https://github.com/topics/mocha
Skip to content
#

mocha

Here are 2,649 public repositories matching this topic...

TimothyJones
TimothyJones commented Jan 7, 2021

Issue Classification

  • Feature request

Feature Request

Currently, the error messages when a consumer test fails to match the expectations are not very detailled. Many users don't realise they can look in the log to get more detailed errors.

We should improve this behaviour - at a minimum, we could add an error message directing users to the log file.

Ideally, we'd have a d

guidobouman
guidobouman commented Aug 21, 2019

The and method is not supported by Jest, where Chai does support it.

It should probably cut the assertion in two:

- expect(ticketNumber).to.be.above(0).and.to.be.below(46)
+ expect(ticketNumber).toBeGreaterThan(0)
+ expect(ticketNumber).toBeLessThan(46)

Is this a feasible option for codemods?

If so: I'm willing to work on a PR.

This is a basic API REST skeleton written on JavaScript using async/await. Great for building a starter web API for your front-end (Android, iOS, Vue, react, angular, or anything that can consume an API). Demo of frontend in VueJS here: https://github.com/davellanedam/vue-skeleton-mvp

  • Updated Jan 23, 2021
  • JavaScript

Improve this page

Add a description, image, and links to the mocha topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mocha topic, visit your repo's landing page and select "manage topics."

Learn more