INNER CODE UNIT · TypeScript
runAsyncRewriterTests
mongodb-js/mongosh · packages/async-rewriter-spec/src/index.ts:33
function runAsyncRewriterTests({
newAsyncRewriter,
hooks: { context, it, beforeEach, afterEach, before },
}: RunTestsOptions): void {
let implicitlyAsyncFn: sinon.SinonStub;
let plainFn: sinon.SinonStub;
let implicitlyAsyncMethod: sinon.SinonStub;
let plainMethod: sinon.SinonStub;
let implicitlyAsyncValue: any;
let ctx: any;
let runTranspiledCode: (code: string, context?: any) => any;
let runUntranspiledCode: (code: string, context?: any) => any;
let asyncWriter: AsyncRewriter;
beforeEach(async function () {
implicitlyAsyncFn = sinon.stub();
plainFn = sinon.stub();
implicitlyAsyncMethod = sinon.stub();