@mittwald/flow-react-components 1.6.0-next.53 → 1.6.0-next.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +8 -4
- package/dist/assets/component-index.json +1 -1
- package/dist/assets/doc-properties.json +1 -1
- package/dist/js/packages/components/src/components/CodeEditor/CodeEditor.mjs +6 -4
- package/dist/js/packages/components/src/components/CodeEditor/CodeEditor.mjs.map +1 -1
- package/package.json +10 -10
package/AGENTS.md
CHANGED
|
@@ -333,12 +333,13 @@ if ("action" in props) {
|
|
|
333
333
|
| `*.test.ts(x)` (unit) | Pure logic in `src/lib/` or component utility functions. |
|
|
334
334
|
| `*.test-types.tsx` | Generic/typed public APIs — `expectTypeOf` plus `@ts-expect-error` negative assertions. |
|
|
335
335
|
|
|
336
|
-
A bug fix gets a regression test when it changes behavior this table covers
|
|
337
|
-
rendered output the
|
|
336
|
+
A bug fix gets a regression test when it changes behavior this table covers —
|
|
337
|
+
not by default. When it changes rendered output, the regression test is a
|
|
338
|
+
scenario in the visual suite
|
|
338
339
|
(`packages/remote-react-components/src/tests/visual`, see Definition of Done
|
|
339
340
|
item 4 in the
|
|
340
|
-
[root AGENTS.md](https://github.com/mittwald/flow/blob/main/AGENTS.md#definition-of-done--component-work))
|
|
341
|
-
|
|
341
|
+
[root AGENTS.md](https://github.com/mittwald/flow/blob/main/AGENTS.md#definition-of-done--component-work)).
|
|
342
|
+
Leave out:
|
|
342
343
|
|
|
343
344
|
- **Wiring of a single prop** — "the consumer `className` reaches the root",
|
|
344
345
|
"`aria-label` is forwarded". A test for one prop is arbitrary: every other
|
|
@@ -349,6 +350,9 @@ item 4 in the
|
|
|
349
350
|
formatter. Assert the result it produces, not that it ran. `on*` event props
|
|
350
351
|
are the exception: the call is what the consumer observes, so a spy is the
|
|
351
352
|
assertion.
|
|
353
|
+
- **A browser test for what a visual scenario already shows** — layout,
|
|
354
|
+
overflow, sizing, styling. The screenshot is the regression test; geometry
|
|
355
|
+
assertions (`scrollWidth`, `getBoundingClientRect`) beside it add nothing.
|
|
352
356
|
- **Tests that pass without the fix.** Revert the fix and watch the test fail
|
|
353
357
|
before committing it. If it cannot fail, it guards nothing; say in the PR how
|
|
354
358
|
you verified the fix instead. The `optimizeDeps` entry under
|