Created
May 9, 2020 20:59
-
-
Save luizamboni/ba7a5279628aa3c9a7bb58b071bb91b3 to your computer and use it in GitHub Desktop.
mocha test startup for strapi tutorial
This file contains hidden or 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')(); | |
before((done) => { | |
strapi.start(() => { | |
done() | |
}); | |
}); | |
after(() => { | |
strapi.stop(0); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment