designcourse
designcourse copied to clipboard
👷 change e2e implementation for workers
Motivation
The initial implementation of Worker E2E tests was somewhat tied to our specific use case and will not scale if we need to test different scenarios within the Worker environment.
Changes
It introduces a version of withWorker that automatically sets up the logs inside the worker. We can also pass an implementation, similar to what we do with withLogs and withBody.
Test instructions
All e2e still passed.
Checklist
- [X] Tested locally
- [ ] Tested on staging
- [ ] Added unit tests for this change.
- [X] Added e2e/integration tests for this change.