refactor tests for readability (#51051)
You'll probably want to disable whitespace in the diff ## Description This allows for better editor support by using `describe` or functions called `describe` with the same syntax instead of custom names. Changes: - `nextTestSetup` can be used instead of `createNextDescribe` keeping the same behaviour but being called inside a `describe` "block" (not applied everywhere) - `getSnapshotTestDescribe` replaced with a custom `describe.each` - `sandbox` helper function for `acceptance`/`acceptance-app` merged into a single shared one - `outdent` to remove the indent from inline files in tests which helps with consistent snapshots
Showing
| ... | @@ -169,6 +169,7 @@ | ... | @@ -169,6 +169,7 @@ |
| "npm-run-all": "4.1.5", | "npm-run-all": "4.1.5", | ||
| "nprogress": "0.2.0", | "nprogress": "0.2.0", | ||
| "open": "9.0.0", | "open": "9.0.0", | ||
| "outdent": "0.8.0", | |||
| "pixrem": "5.0.0", | "pixrem": "5.0.0", | ||
| "playwright-chromium": "1.28.1", | "playwright-chromium": "1.28.1", | ||
| "plop": "3.0.5", | "plop": "3.0.5", | ||
| ... | ... |
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment