mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Wow this took me the entire day: If you run `createServer` multiple times, more and more middlewares get added to the schema. That's why the test would create 2^n notifications for n times you called `createServer`. This is related to the following bug: https://github.com/prisma/graphql-middleware/issues/63
12 lines
459 B
JavaScript
12 lines
459 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'),
|
|
User: require('./User.js'),
|
|
InvitationCode: require('./InvitationCode.js'),
|
|
EmailAddress: require('./EmailAddress.js'),
|
|
SocialMedia: require('./SocialMedia.js'),
|
|
Post: require('./Post.js'),
|
|
Notification: require('./Notification.js'),
|
|
}
|