diff options
Diffstat (limited to 'ext/node/polyfills/testing.ts')
-rw-r--r-- | ext/node/polyfills/testing.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/node/polyfills/testing.ts b/ext/node/polyfills/testing.ts index 83e8f6f0b..57ef8e795 100644 --- a/ext/node/polyfills/testing.ts +++ b/ext/node/polyfills/testing.ts @@ -56,7 +56,10 @@ class NodeTestContext { const prepared = prepareOptions(name, options, fn, {}); return this.#denoContext.step({ name: prepared.name, - fn: prepared.fn, + fn: async (denoTestContext) => { + const newNodeTextContext = new NodeTestContext(denoTestContext); + await prepared.fn(newNodeTextContext); + }, ignore: prepared.options.todo || prepared.options.skip, }).then(() => undefined); } |