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
I a persistent error while using serverless framework with serverless-offline and jest unit testing module.
I am trying to test my serverless function (lambda) using serverless-jest-plugin which is supposed to integrate jest on serverless. Following is my jest configuration in my serverless.yml:
I have a lambda function which uses dynamoDB to get some data etc.
Whenever I use sls invoke test I have the following:
$ sls invoke test
FAIL tests/file.test.js
● Test suite failed to run
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.relative (path.js:1226:5)
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.386s
Ran all test suites.
I a persistent error while using
serverless
framework withserverless-offline
andjest
unit testing module.I am trying to test my serverless function (lambda) using
serverless-jest-plugin
which is supposed to integratejest
onserverless
. Following is myjest
configuration in myserverless.yml
:I have a lambda function which uses dynamoDB to get some data etc.
Whenever I use
sls invoke test
I have the following:I'm running the following
package.json
:Cheers.
The text was updated successfully, but these errors were encountered: