Commit 3e1abcc
authored
[tests] Require exact error messages in assertConsole helpers (facebook#35497)
Requires full error message in assert helpers.
Some of the error messages we asset on add a native javascript stack
trace, which would be a pain to add to the messages and maintain. This
PR allows you to just add `\n in <stack>` placeholder to the error
message to denote a native stack trace is present in the message.
---
Note: i vibe coded this so it was a pain to backtrack this to break this
into a stack, I tried and gave up, sorry.1 parent c186624 commit 3e1abcc
File tree
16 files changed
+690
-320
lines changed- .github/workflows
- packages
- internal-test-utils
- __tests__
- react-client/src/__tests__
- react-debug-tools/src/__tests__
- react-dom/src/__tests__
- react-reconciler/src/__tests__
- react-server-dom-webpack/src/__tests__
- react-server/src/__tests__
- react/src/__tests__
- use-sync-external-store/src/__tests__
16 files changed
+690
-320
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
| 449 | + | |
448 | 450 | | |
449 | 451 | | |
450 | 452 | | |
| |||
489 | 491 | | |
490 | 492 | | |
491 | 493 | | |
| 494 | + | |
492 | 495 | | |
493 | 496 | | |
494 | 497 | | |
| |||
0 commit comments