addon/src/index.ts
import { createSandbox, restoreSandbox } from './test-support/index.ts';
import * as QUnit from 'qunit';
/**
* Allows for creating and restoring a global sinon sandbox per test. This is
* done via the `QUnit.testStart` and `QUnit.testDone` methods.
*
* @export
* @param {Object} An object containing optional options
* @public
*/
export default function setupSinon(testEnvironment = QUnit) {
testEnvironment.testStart(createSandbox);
testEnvironment.testDone(restoreSandbox);
}