From 1bb3e4e9e692553cb27509e272ed19f284cc3c3a Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 12 Jun 2023 14:07:15 +0200 Subject: [PATCH] models --- backend/src/models/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/models/index.ts b/backend/src/models/index.ts index 347c3a029..2368f9f71 100644 --- a/backend/src/models/index.ts +++ b/backend/src/models/index.ts @@ -1,5 +1,6 @@ // NOTE: We cannot use `fs` here to clean up the code. Cypress breaks on any npm // module that is not browser-compatible. Node's `fs` module is server-side only +declare var Cypress: any | undefined export default { Image: typeof Cypress !== 'undefined' ? require('./Image.js') : require('./Image.js').default, Badge: typeof Cypress !== 'undefined' ? require('./Badge.js') : require('./Badge.js').default,