Skip to content

Instantly share code, notes, and snippets.

@luizamboni
Created May 9, 2020 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizamboni/ba7a5279628aa3c9a7bb58b071bb91b3 to your computer and use it in GitHub Desktop.
Save luizamboni/ba7a5279628aa3c9a7bb58b071bb91b3 to your computer and use it in GitHub Desktop.
mocha test startup for strapi tutorial
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