Commit 277d085
authored
feat(testing-sdk): Refactor testing library to not use a running server (#344)
*Issue #, if available:*
*Description of changes:*
Currently the testing library spins up a whole server to simulate the
Lambda service. This is unnecessary overhead, and also can cause issues
with mocking, since its an extra dependency that customers need to avoid
mocking. Additionally, it can create issues due to port conflicts.
This change makes it so the server is now simulated using worker
communication instead of creating an actual socket.
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.1 parent aacc208 commit 277d085
File tree
48 files changed
+1949
-5584
lines changed- packages/aws-durable-execution-sdk-js-testing
- src
- checkpoint-server
- __tests__
- handlers
- middleware
- __tests__
- storage
- __tests__
- worker-api
- __tests__
- worker
- __tests__
- test-runner
- common
- operations
- __tests__
- local
- __tests__
- api-client
- __tests__
- operations/__tests__
- real-timers
- worker
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+1949
-5584
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | | - | |
63 | | - | |
| 60 | + | |
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
| |||
0 commit comments