This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Commit 6e7901a
committed
Add
Miniflare injects the `ExecutionContext` class into its unit testing
environments, so they can be constructed and passed to imported
module event handlers. Previously, this type was only available as
an `interface` from `@cloudflare/workers-types`, causing a type error
whenever it was constructed. With this change, it's now declared as
a value when including `{jest,vitest}-environment-miniflare/globals`
in the `tsconfig.json` `types` array.ExecutionContext as global _value_ to test environment types1 parent 96bcc93 commit 6e7901a
File tree
1 file changed
+6
-0
lines changed1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
| |||
0 commit comments