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.

frontend tests: stale mocha.js version

See original GitHub issue

File tests/frontend/lib/mocha.js is quite old: first committed in 2012 with ba4ebbba3ba6, slightly modified the day after in 7aee98bce82e (“made test helpers more cross browser compatible”).

-    var query = Mocha.utils.parseQuery(window.location.search || '');
-    if (query.grep) mocha.grep(query.grep);
+    //var query = Mocha.utils.parseQuery(window.location.search || '');
+    //if (query.grep) mocha.grep(query.grep);

It would be probably useful to update the frontend library like we did for the backend one.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnMcLearcommented, Apr 29, 2020

Excellent work man, I really appreciate you handling this because I clearly was right in assuming I was out of my depths as far as hacking into Mocha 😛

1reaction
JohnMcLearcommented, Mar 31, 2020

Solution on https://github.com/ether/etherpad-lite/issues/3804

TLDR; use /index.html …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mocha - the fun, simple, flexible JavaScript test framework
Mocha is a feature-rich JavaScript test framework running on Node. js and in the browser, making asynchronous testing simple and fun. Mocha tests...
Read more >
Introduction to Frontend Testing - Flavio Copes
Introduction to Frontend Testing ... Mocha is an awesome and versatile testing tool. There are many testing frameworks out there, and I choose...
Read more >
Extending mocha reporters from a Browser integration #4259
Ensured that there is no discrepancy between the locally and globally installed versions of Mocha. You can find them with: node node_modules/.
Read more >
Mocha vs. Jest: comparison of two testing tools for Node.js
Mocha is widely used in Node.js. It's focused on various types of tests such as unit, integration, and end-to-end testing.
Read more >
JavaScript unit testing frameworks in 2022: A comparison
Potential inconsistency with plugins. Mocha includes the test structure as globals, saving time by not having to include or require it in every ......
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