I am building a library which uses the web audio api(ToneJS to be more specific).
I have tried using jsdom, mocha-jsdom with no success.
I get this error -
This browser does not support Tone.js
/home/seanitzel/Documents/Programming/Note-Art/node_modules/tone/build/Tone.js:3869
this.input = this.output = this._gainNode = this.context.createGain();
Which makes sense and tells me that i need to use an environment with a context.
I'm not even sure how i should setup the tests for my project tbh.
How should i setup a test environment correctly for my project?
Aucun commentaire:
Enregistrer un commentaire