mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
721 B
721 B
Testing
Logging
JawsUtils.jawsDebug() offers the ability for writing debug logs to stdout. You can control the namespaces that get logged by setting the DEBUG env var per the [https://github.com/visionmedia/debug](npm debug) rules. If you want to see all namespaces set DEBUG=*
Running test cases
- Set env vars defined in
tests/config.js. By default if you do not setTEST_JAWS_EXE_CFno AWS resources will be created. - Make sure you have run
npm installfrom the jaws project root - Run the mocha test from the CLI (
mocha tests/all.js) or setup mocha test from your IDE. WebStorm allows you to run a debugger in the IDE for your test cases which is really handy to track down issues.