feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.02k stars 745 forks source link

fix(adapter-commons): Support non-default import to ease use with ESM projects #3152

Closed FossPrime closed 1 year ago

FossPrime commented 1 year ago

This PR saves people on ESM projects from doing the following hacky bit:

const testSuite = (typeof adapterTests === 'function' ? adapterTests : adapterTests.default)([

it's an easy non breaking fix, versus exporting two different versions.