question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What can I do if I want to use this lib with mocha?

See original GitHub issue

I like the semi-BDD approach of mocha and using test() instead of describe(it()) would be a huge step backward for me. Will this repo merged into jest? If not, where can we find the new documentation and where can we send the new issues? What alternatives do you have if we don’t want to use jest? There is an old https://github.com/Automattic/expect.js I used that previously, but it is no longer maintained, that’s why I tried this one. Probably I should have read the readme file more carefully…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
inf3rnocommented, Sep 11, 2018

Well I really don’t have the time for this, so this will be my last comment. What I use to do is write into google or into the github search field my keywords, check the quick starts from the readme files, the stars, the last updates and the travis results of the repos. If I think someting is worth to use, then I follow the installation guide in the readme file, which is usually npm install xy --save. I use the npmjs site only if I want to publish something and I want to check whether a name already exists. Actually there is a CLI command for that too, but I always forget it, so it is faster to check the site, than reading the documentation again. I am going to use chai instead, their API is not as good as yours, but at least they don’t have communication problems. Good luck!

0reactions
ljharbcommented, Sep 11, 2018

Since you installed the software from npm, it doesn’t really make sense to use anything else (and expect you’ll always get the right result).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mocha - the fun, simple, flexible JavaScript test framework
simple, flexible, fun. Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun....
Read more >
Getting Started with Node.js and Mocha - Semaphore Tutorial
Mocha is a simple, extensible and fast testing library for Node.js. This article will walk you through its installation, configuration and usage.
Read more >
mocha as a library - javascript - Stack Overflow
I would like to use mocha (the node.js test framework, not the ruby mocking library) as a library, rather than using the mocha...
Read more >
How To Test a Node.js Module with Mocha and Assert
Using this module, we will be able to list all the TODOs that we are keeping track of, add new items, and mark...
Read more >
How to Write a Library for Node.js and Browser with Mocha ...
We can use following methods to do that. This example files structure look like this: src\md5.js tests\test.js tests\node-test.js ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found