This commit is contained in:
Ulf Gebhardt 2023-06-12 14:07:15 +02:00
parent 9690b0667b
commit 1bb3e4e9e6
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -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,