This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-06-18T10:36:18.749Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Strapi = require('strapi'); | |
const { MongoMemoryServer } = require('mongodb-memory-server'); | |
const mongod = new MongoMemoryServer(); | |
async function setupStrapi (entryNamesToOpen) { | |
const uri = await mongod.getUri(); | |
process.env.DATABASE_URI = uri; | |
await Strapi().start(); | |
const roles = await strapi.plugins[ |