mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
* DRY schema stitching code * Use same `.env` configuration file for cypress tests That last part I couldn't improve a lot. I thought it might be possible with cypress to import all files from a folder. But since it must be browser compatible and our backend is not using webpack or anything, it remains a goal unreached. close #2773 close #2774
17 lines
739 B
JavaScript
17 lines
739 B
JavaScript
// 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
|
|
export default {
|
|
Badge: require('./Badge.js').default,
|
|
User: require('./User.js').default,
|
|
EmailAddress: require('./EmailAddress.js').default,
|
|
UnverifiedEmailAddress: require('./UnverifiedEmailAddress.js').default,
|
|
SocialMedia: require('./SocialMedia.js').default,
|
|
Post: require('./Post.js').default,
|
|
Comment: require('./Comment.js').default,
|
|
Category: require('./Category.js').default,
|
|
Tag: require('./Tag.js').default,
|
|
Location: require('./Location.js').default,
|
|
Donations: require('./Donations.js').default,
|
|
Report: require('./Report.js').default,
|
|
}
|