Make chai.js and SinonJS compatible with testing framework and add instructions how to use it
See original GitHub issuechai.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:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?addressed in #1334. Thank you @cmorten for the work!