Commit 81fd733
chore: additional test coverage for service / environments tags + more (#10706)
* chore: add test for service/environment tags with redirected config
* chore: fix regex in writeWranglerConfig() test helper
* chore: use `config.definedEnvironments` for multi-env warning condition
* fix: preserve original `topLevelName` when using a redirected config
* chore: refactor service and environment tagging to consolidate with existing script-settings update requests
* chore: add new `yieldRequestsFrom` test helper that mocks endpoints and lets you make assertions on requests
The existing mechanisms for asserting on requests didn't offer enough control and I found that many assertions were not actually being properly verified. This powerful new generator-based approach allows you to make unique assertions against each request. And since the assertions are being made directly within the scope of the test case, they're much more reliable.
* chore: refactor service/environment tag tests, fix false negatives
* Update JSDoc example
* suggested simplification of test helper
* don't try to format generated prisma files
---------
Co-authored-by: Peter Bacon Darwin <[email protected]>1 parent 06e9a48 commit 81fd733
File tree
14 files changed
+536
-471
lines changed- .changeset
- packages/wrangler/src
- __tests__
- helpers
- pages/__snapshots__
- versions
- config
- core
- deploy
- environments
- versions
14 files changed
+536
-471
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
0 commit comments