-
Notifications
You must be signed in to change notification settings - Fork 1k
Testing
Yotam Mann edited this page Sep 7, 2018
·
3 revisions
Tone.js has an extensive test suite built on karma, mocha and chai.
To install all testing dependencies:
npm installTo run all tests on Chrome and Firefox using Karma Test Runner:
npm run testTo test an individual file with karma:
npm run test --file=Oscillator(replace Oscillator with the name of the test file you'd like to run)
To run all tests in a directory run:
npm run test --dir=core(replace core with the name of the directory you'd like to run)
footer