Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocks not hit when using sls offline worker threads #44

Closed
claytondus opened this issue Feb 15, 2024 · 1 comment
Closed

Mocks not hit when using sls offline worker threads #44

claytondus opened this issue Feb 15, 2024 · 1 comment

Comments

@claytondus
Copy link

serverless-offline-http-mock 1.0.0
serverless-offline 13.3.3
node.js 18.19.1
darwin-arm64 (macOS 14.2.1)

In upgrading from serverless-offline 8.x, the default in-process hosting model was changed to worker threads. After upgrading, mocks are no longer hit (although nock.recorder() can see requests made by serverless itself). Switching back to in-process using the --useInProcess flag corrects the issue, although handler reloading is now broken (https://github.com/dherault/serverless-offline/releases/tag/v9.0.0). Is it possible to support the worker thread model?

@claytondus
Copy link
Author

Closing this as dupe of #42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant