diff --git a/packages/client/modules/tests/loader.client.spec.ts b/packages/client/modules/tests/loader.client.spec.ts index 2979efbe72..4c9b1cd1fa 100644 --- a/packages/client/modules/tests/loader.client.spec.ts +++ b/packages/client/modules/tests/loader.client.spec.ts @@ -91,7 +91,7 @@ function bench( describe('Cordis plugin face', () => { it('rejects activation before the HTML facade creates the module system', () => { - expect(() => apply(new Context())).toThrow('createClientModuleSystem must run before plugin boot') + expect(() => { apply(new Context()) }).toThrow('createClientModuleSystem must run before plugin boot') }) }) diff --git a/scripts/verify-client-packages.ts b/scripts/verify-client-packages.ts index cc1b56b5d4..17b7c9d7c1 100644 --- a/scripts/verify-client-packages.ts +++ b/scripts/verify-client-packages.ts @@ -102,10 +102,12 @@ function importCarriesRuntimeValue(node: ts.ImportDeclaration): boolean { const clause = node.importClause if (clause === undefined) return true if (clause.phaseModifier === ts.SyntaxKind.TypeKeyword) return false - if (clause.name !== undefined) return true const bindings = clause.namedBindings - if (bindings === undefined || ts.isNamespaceImport(bindings)) return true - return bindings.elements.length === 0 || bindings.elements.some(element => !element.isTypeOnly) + return clause.name !== undefined + || bindings === undefined + || ts.isNamespaceImport(bindings) + || bindings.elements.length === 0 + || bindings.elements.some(element => !element.isTypeOnly) } function exportCarriesRuntimeValue(node: ts.ExportDeclaration): boolean {