You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2019. It is now read-only.
I've gotten it working with the following as a replacement for insert-cassette:
// mocha-insert-cassette.jsimport{startServer,stopServer,setupServer}from'./fake-server';importbetamaxRecorderfrom'./betamax-recorder';exportdefaultfunction(cassette){beforeEach(function(){startServer();// if record is not selected, use recordingsif(!window.recordCassette){setupServer(cassette);}betamaxRecorder.setup();});afterEach(function(){stopServer();// if we are not in testem, download new casettes.if(window.recordCassette){betamaxRecorder.download();}});}// change import line in test-helper to "import insertCassette from './helpers/mocha-insert-cassette';"
In our web UI for the mocha runner, we have added an option to toggle window.recordCassette.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Does this work with Mocha instead of Qunit?
The text was updated successfully, but these errors were encountered: