From d06f2cfcadda7dc23f0e2bec44f64e6be8500d02 Mon Sep 17 00:00:00 2001 From: Ray Foss Date: Tue, 11 Apr 2023 17:49:06 -0500 Subject: [PATCH] fix(adapter-commons): Support non-default import to ease use with ESM projects --- packages/adapter-tests/src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/adapter-tests/src/index.ts b/packages/adapter-tests/src/index.ts index bde34ce7e8..bde4d97e47 100644 --- a/packages/adapter-tests/src/index.ts +++ b/packages/adapter-tests/src/index.ts @@ -4,7 +4,7 @@ import { AdapterTestName } from './declarations' import methodTests from './methods' import syntaxTests from './syntax' -const adapterTests = (testNames: AdapterTestName[]) => { +export const adapterTests = (testNames: AdapterTestName[]) => { return (app: any, errors: any, serviceName: any, idProp = 'id') => { if (!serviceName) { throw new Error('You must pass a service name') @@ -30,7 +30,9 @@ const adapterTests = (testNames: AdapterTestName[]) => { after(() => { testNames.forEach((name) => { if (!allTests.includes(name)) { - console.error(`WARNING: '${name}' test is not part of the test suite`) + console.error( + `WARNING: '${name}' test is not part of the test suite` + ) } }) if (skippedTests.length) {