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.

Make chai.js and SinonJS compatible with testing framework and add instructions how to use it

See original GitHub issue

chai.js and Sinon.JS are very popular testing libraries that run both in Node and browser.

Since they can be run in browser it should be a low hanging fruit to make them work in Deno and I believe it would be very valuable to add “first-class” instructions to testing/README.md how they could be used with Deno’s built-in testing (deno test).

CC @keithamus

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bartlomiejucommented, Sep 21, 2021

Are you facing any challenges…

Mostly motivation 😂. Deno is pleasurable to work with although it can be prickly with regard to imports and the .ts extension which Node+TypeScript doesn’t like, but Deno requires. I’m not sure if there is good tooling to help manage the difference in dependency APIs?

Keith I noticed that chai already has browser support; I’m willing to guess that it should just work in Deno without any changes. Maybe the only thing you want to do is link that output to https://deno.land/x/ to make it more discoverable for Deno users?

0reactions
kt3kcommented, Oct 8, 2021

addressed in #1334. Thank you @cmorten for the work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Mocha JS, Chai JS and Sinon JS to Test your Frontend ...
Mocha is a test framework while Chai is an expectation one. Let's say Mocha sets up and describes test suites and Chai provides...
Read more >
Sinon.JS - Standalone test fakes, spies, stubs and mocks for ...
Standalone test spies, stubs and mocks for JavaScript. Works with any unit testing framework.
Read more >
Sinon.JS Assertions for Chai - Chai
Sinon–Chai provides a set of custom assertions for using the Sinon.JS spy, stub, and mocking framework with the Chai assertion library.
Read more >
How to set up Mocha with Sinon.js - Gleb Bahmutov
Step by step guide to using Sinon.js mocking library with Mocha.js test runner · Basic setup · Sandbox · Global sandbox · CI...
Read more >
Sinon.js vs Chai comparison of testing frameworks
js and the browser that can be paired with any JavaScript testing framework. Chai is an assertion library, similar to Node's built-in assert...
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