Trying to run integration tests on a locally runni...
# help
g
Trying to run integration tests on a locally running sst instance seems to be really broken. I keep getting errors saying it cannot find module 'create'. For integration testing I am doing a direct lambda invoke to avoid having to generate an auth token and it seems anytime I do direct invokes it is not happy. (currently on sst 0.52.0) Small snippet of the error
Copy code
Uncaught Exception {
  "errorType":"Runtime.ImportModuleError",
  "errorMessage":"
  Error: Cannot find module 'create'
    Require stack:
      - C:\\ddd\\node_modules\\@serverless-stack\\aws-lambda-ric\\lib\\utils\\UserFunction.js
      - C:\\ddd\\node_modules\\@serverless-stack\\aws-lambda-ric\\lib\\index.js
      - C:\\ddd\\node_modules\\@serverless-stack\\aws-lambda-ric\\bin\\index.js"
It worked a few times but I just cannot stop getting the above error no matter what I do now
Oh I see it seems running
sst test
destroys the .build folder 😐
f
yeah, can u try running
jest
directly?
g
Yeah just switching over to that its working fine