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
Seems like the test runner is not loading other plugins before running the tests. There is a suggestion at the discussion linked above. @laardee any thoughts on this?
Description
I'm trying to ensure that webpack runs before the testing plugin.
It appears tests are running the uncompiled code (not using webpack), and also using the node version. This means I'm not catching all the syntax errors lambda runtime does not support.
Reproduction
It's a bit tricky to reproduce this error, since you'd have to compare the jest test run results to that of a deployed function.
You can break the webpack integration by breaking the config file :
module.exports = {
entry: null,
...
The test runner will not catch this error, which implies that webpack is not running before the tests.
The only way to catch this is by running serverless webpack serve
cross posted here: serverless-heaven/serverless-webpack#143
Seems like the test runner is not loading other plugins before running the tests. There is a suggestion at the discussion linked above.
@laardee any thoughts on this?
Description
I'm trying to ensure that webpack runs before the testing plugin.
It appears tests are running the uncompiled code (not using webpack), and also using the node version. This means I'm not catching all the syntax errors lambda runtime does not support.
Reproduction
It's a bit tricky to reproduce this error, since you'd have to compare the jest test run results to that of a deployed function.
You can break the webpack integration by breaking the config file :
The test runner will not catch this error, which implies that webpack is not running before the tests.
The only way to catch this is by running
serverless webpack serve
Additional Data
package.json
serverles.yml
The text was updated successfully, but these errors were encountered: