You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to do Unit Testing in Strapi. I am following the documentation but the test are not running. When trying to run the tests I get the following errors
[2020-09-01T10:46:51.491Z] error Bootstrap function in plugin "users-permissions" failed
[2020-09-01T10:46:51.492Z] error undefined
● process.exit called with "1"
7 | if (!instance) {
8 | /** the following code in copied from `./node_modules/strapi/lib/Strapi.js` */
> 9 | await Strapi().load()
| ^
10 | instance = strapi // strapi is global now
11 | await instance.app
12 | .use(instance.router.routes()) // populate KOA routes
at Strapi.stop (node_modules/strapi/lib/Strapi.js:263:13)
at node_modules/strapi/lib/Strapi.js:391:16
at async Promise.all (index 4)
at Strapi.runBootstrapFunctions (node_modules/strapi/lib/Strapi.js:394:5)
at Strapi.load (node_modules/strapi/lib/Strapi.js:326:5)
at setupStrapi (tests/helpers/strapi.js:9:9)
at Object.<anonymous> (tests/app.test.js:6:5)
Process finished with exit code 1
Hi, I am trying to do Unit Testing in Strapi. I am following the documentation but the test are not running. When trying to run the tests I get the following errors
Steps to reproduce the behavior
Expected behavior
Test should be passing
Screenshots
If applicable, add screenshots to help explain your problem.
System
The text was updated successfully, but these errors were encountered: