error: Must contain an `adapter` key referencing the adapter to use.
PetriHuovinen opened this issue · 5 comments
If I leave out the keyword "adapter" from connection configuration, I get the error as described in the title when using the "npm test" command. To clarify the situation, "sails lift" works correctly. This error occurs only when I try to run my tests.
I'm using sails version 0.12.0-rc4
hi, I got the same error. After I reviewed the configuration 1 minute, i realized that i have made mistake in file .sailsrc ( i wrote "hook" instead of "hooks")
Please make sure your .sailsrc is correct.
{
"generators": {
"modules": {}
},
"hooks": {
"orm": false,
"pubsub": false
}
}
Thanks, but that wasn't the case here. My .sailsrc is same as yours, @duongNA. I'm still looking for a solution for this.
I guess npm test
still use hook orm that loads models for waterline. The error message comes from hook orm. I think you should find a way to disable orm when running npm test. Hope it help
Hi all! In current version, i can not see such errors. Npm test works as expected. So, closing for now. Feel free to reopen if you find any problems.