INNER CODE UNIT · TypeScript
runTests
mongodb-js/mongosh · packages/async-rewriter-spec/src/index.ts:29
export function runTests(opts: RunTestsOptions): void {
opts.hooks.describe('AsyncRewriter', () => runAsyncRewriterTests(opts));
}
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;