From 7b1af27155a054fc0d077f57bb0074bcf108d866 Mon Sep 17 00:00:00 2001 From: iambumblehead Date: Fri, 10 Nov 2023 09:56:08 -0800 Subject: [PATCH] Revert "Enrich the docs when it comes to types" --- README.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/README.md b/README.md index 3112e1d..b8e865c 100644 --- a/README.md +++ b/README.md @@ -49,15 +49,6 @@ test('full import tree mocks —third param', async () => { assert.equal(getFile(), 'returned to 🌲 every caller in the tree') }) -test('allows you to specify the type of returned exports', async () => { - const { multiplyNumbers } = await esmock( - '../src/utils.js', { - multiplyNumbers: (numbers: number[]): number => numbers.reduce((acc, current) => acc *= current, 1), - }) - - assert.equal(multiplyNumbers([1, 2, 3]), 6) -}) - test('mock fetch, Date, setTimeout and any globals', async () => { // https://github.com/iambumblehead/esmock/wiki#call-esmock-globals const { userCount } = await esmock('../Users.js', {