Skip to content

Commit b9d65b8

Browse files
authored
[test] Assert on all errors in Redbox matchers (#77907)
1 parent 2983688 commit b9d65b8

File tree

34 files changed

+916
-667
lines changed

34 files changed

+916
-667
lines changed

test/development/acceptance-app/ReactRefreshLogBox-builtins.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ describe('ReactRefreshLogBox-builtins app', () => {
4848
if (isTurbopack) {
4949
await expect(browser).toDisplayRedbox(`
5050
{
51-
"count": 1,
5251
"description": "Module not found: Can't resolve 'dns'",
5352
"environmentLabel": null,
5453
"label": "Build Error",
@@ -62,7 +61,6 @@ describe('ReactRefreshLogBox-builtins app', () => {
6261
} else {
6362
await expect(browser).toDisplayRedbox(`
6463
{
65-
"count": 1,
6664
"description": "Module not found: Can't resolve 'dns'",
6765
"environmentLabel": null,
6866
"label": "Build Error",
@@ -97,7 +95,6 @@ describe('ReactRefreshLogBox-builtins app', () => {
9795
if (isTurbopack) {
9896
await expect(browser).toDisplayRedbox(`
9997
{
100-
"count": 1,
10198
"description": "Module not found: Can't resolve 'b'",
10299
"environmentLabel": null,
103100
"label": "Build Error",
@@ -111,7 +108,6 @@ describe('ReactRefreshLogBox-builtins app', () => {
111108
} else {
112109
await expect(browser).toDisplayRedbox(`
113110
{
114-
"count": 1,
115111
"description": "Module not found: Can't resolve 'b'",
116112
"environmentLabel": null,
117113
"label": "Build Error",
@@ -147,7 +143,6 @@ describe('ReactRefreshLogBox-builtins app', () => {
147143
if (isTurbopack) {
148144
await expect(browser).toDisplayRedbox(`
149145
{
150-
"count": 1,
151146
"description": "Module not found: Can't resolve 'b'",
152147
"environmentLabel": null,
153148
"label": "Build Error",
@@ -161,7 +156,6 @@ describe('ReactRefreshLogBox-builtins app', () => {
161156
} else {
162157
await expect(browser).toDisplayRedbox(`
163158
{
164-
"count": 1,
165159
"description": "Module not found: Can't resolve 'b'",
166160
"environmentLabel": null,
167161
"label": "Build Error",
@@ -195,7 +189,6 @@ describe('ReactRefreshLogBox-builtins app', () => {
195189
if (isTurbopack) {
196190
await expect(browser).toDisplayRedbox(`
197191
{
198-
"count": 1,
199192
"description": "Module not found: Can't resolve './non-existent.css'",
200193
"environmentLabel": null,
201194
"label": "Build Error",
@@ -209,7 +202,6 @@ describe('ReactRefreshLogBox-builtins app', () => {
209202
} else {
210203
await expect(browser).toDisplayRedbox(`
211204
{
212-
"count": 1,
213205
"description": "Module not found: Can't resolve './non-existent.css'",
214206
"environmentLabel": null,
215207
"label": "Build Error",

0 commit comments

Comments
 (0)