Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions packages/zip-it-and-ship-it/tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -896,18 +896,6 @@ describe('zip-it-and-ship-it', () => {
},
)

testMany(
'Exposes the main export of `node-fetch` when imported using `require()`',
[...allBundleConfigs],
Comment on lines -899 to -901
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whew, it took me a few hops to find this but here's where this was introduced: netlify/zip-it-and-ship-it#353. I'm a little worried that I don't fully understand the intent of this, so maybe we should wait for a thumbs up from @eduardoboucas on this one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... although it's just removing a test, so I'll approve and we can always revert if necessary!

async (options) => {
const { files } = await zipFixture('node-fetch', { opts: options })
const unzippedFunctions = await unzipFiles(files)
const returnValue = await importFunctionFile(`${unzippedFunctions[0].unzipPath}/function.js`)

expect(returnValue).toBeTypeOf('function')
},
)

testMany(
'{name}/{name}.js takes precedence over {name}.js and {name}/index.js',
[...allBundleConfigs, 'bundler_none'],
Expand Down
Loading