Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Write a Library for Node.js and Browser with Mocha Unit Tests #3

Open
emn178 opened this issue Oct 28, 2015 · 2 comments
Open

Comments

@emn178
Copy link
Owner

emn178 commented Oct 28, 2015

This page has been moved to new website

Mocha is a test framework for JavaScript, it provides Node.js and browser versions. Assume we implement a JavaScript library and we want to run unit tests automatically. And also, we want that it could be used in Node.js and browsers. We can use following methods to do that.

This example files structure look like this...

@runemadsen
Copy link

This is so damn helpful!

@lmj0011
Copy link

lmj0011 commented Jun 28, 2018

This is so damn helpful!

sure is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants