Weird testing behavior?


#1

I installed AdonisJS vow for testing. This is the default package.json:

"scripts": {
    "start": "node server.js",
    "test": "node ace test"
 },

When I run adonis test all is Ok.

Now I modified the above code snippet to:

"scripts": {
  "start": "node server.js",
   "test": ""
},

Typing adonis test still runs the tests: Why?

Thank you,
Billal BEGUERADJ


#2

Coz adonis test !== npm test. Scripts inside package json are used by npm. Adonis has nothing to do with it


Test coverage: How to set nyc for AdonisJS?