@@ -50,27 +50,27 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
50
50
await session . assertHasRedbox ( )
51
51
if ( process . env . TURBOPACK ) {
52
52
expect ( await session . getRedboxSource ( ) ) . toMatchInlineSnapshot ( `
53
- "./node_modules/my-package/index.js: 1:13
54
- Module not found: Can't resolve 'dns'
55
- > 1 | const dns = require('dns')
56
- | ^^^^^^^^^^^^^^
57
- 2 | module.exports = dns
53
+ "./node_modules/my-package/index.js ( 1:13)
54
+ Module not found: Can't resolve 'dns'
55
+ > 1 | const dns = require('dns')
56
+ | ^^^^^^^^^^^^^^
57
+ 2 | module.exports = dns
58
58
59
- https://nextjs.org/docs/messages/module-not-found"
59
+ https://nextjs.org/docs/messages/module-not-found"
60
60
` )
61
61
} else {
62
62
expect ( await session . getRedboxSource ( ) ) . toMatchInlineSnapshot ( `
63
- "./node_modules/my-package/index.js: 1:1
64
- Module not found: Can't resolve 'dns'
65
- > 1 | const dns = require('dns')
66
- | ^
67
- 2 | module.exports = dns
63
+ "./node_modules/my-package/index.js ( 1:1)
64
+ Module not found: Can't resolve 'dns'
65
+ > 1 | const dns = require('dns')
66
+ | ^
67
+ 2 | module.exports = dns
68
68
69
- https://nextjs.org/docs/messages/module-not-found
69
+ https://nextjs.org/docs/messages/module-not-found
70
70
71
- Import trace for requested module:
72
- ./index.js
73
- ./app/page.js"
71
+ Import trace for requested module:
72
+ ./index.js
73
+ ./app/page.js"
74
74
` )
75
75
}
76
76
} )
@@ -98,30 +98,30 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
98
98
const source = await session . getRedboxSource ( )
99
99
if ( process . env . TURBOPACK ) {
100
100
expect ( source ) . toMatchInlineSnapshot ( `
101
- "./index.js: 1:1
102
- Module not found: Can't resolve 'b'
103
- > 1 | import Comp from 'b'
104
- | ^^^^^^^^^^^^^^^^^^^^
105
- 2 | export default function Oops() {
106
- 3 | return (
107
- 4 | <div>
108
-
109
- https://nextjs.org/docs/messages/module-not-found"
101
+ "./index.js ( 1:1)
102
+ Module not found: Can't resolve 'b'
103
+ > 1 | import Comp from 'b'
104
+ | ^^^^^^^^^^^^^^^^^^^^
105
+ 2 | export default function Oops() {
106
+ 3 | return (
107
+ 4 | <div>
108
+
109
+ https://nextjs.org/docs/messages/module-not-found"
110
110
` )
111
111
} else {
112
112
expect ( source ) . toMatchInlineSnapshot ( `
113
- "./index.js: 1:1
114
- Module not found: Can't resolve 'b'
115
- > 1 | import Comp from 'b'
116
- | ^
117
- 2 | export default function Oops() {
118
- 3 | return (
119
- 4 | <div>
120
-
121
- https://nextjs.org/docs/messages/module-not-found
122
-
123
- Import trace for requested module:
124
- ./app/page.js"
113
+ "./index.js ( 1:1)
114
+ Module not found: Can't resolve 'b'
115
+ > 1 | import Comp from 'b'
116
+ | ^
117
+ 2 | export default function Oops() {
118
+ 3 | return (
119
+ 4 | <div>
120
+
121
+ https://nextjs.org/docs/messages/module-not-found
122
+
123
+ Import trace for requested module:
124
+ ./app/page.js"
125
125
` )
126
126
}
127
127
} )
@@ -150,29 +150,29 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
150
150
const source = await session . getRedboxSource ( )
151
151
if ( process . env . TURBOPACK ) {
152
152
expect ( source ) . toMatchInlineSnapshot ( `
153
- "./app/page.js: 2:1
154
- Module not found: Can't resolve 'b'
155
- 1 | 'use client'
156
- > 2 | import Comp from 'b'
157
- | ^^^^^^^^^^^^^^^^^^^^
158
- 3 | export default function Oops() {
159
- 4 | return (
160
- 5 | <div>
161
-
162
- https://nextjs.org/docs/messages/module-not-found"
153
+ "./app/page.js ( 2:1)
154
+ Module not found: Can't resolve 'b'
155
+ 1 | 'use client'
156
+ > 2 | import Comp from 'b'
157
+ | ^^^^^^^^^^^^^^^^^^^^
158
+ 3 | export default function Oops() {
159
+ 4 | return (
160
+ 5 | <div>
161
+
162
+ https://nextjs.org/docs/messages/module-not-found"
163
163
` )
164
164
} else {
165
165
expect ( source ) . toMatchInlineSnapshot ( `
166
- "./app/page.js: 2:1
167
- Module not found: Can't resolve 'b'
168
- 1 | 'use client'
169
- > 2 | import Comp from 'b'
170
- | ^
171
- 3 | export default function Oops() {
172
- 4 | return (
173
- 5 | <div>
174
-
175
- https://nextjs.org/docs/messages/module-not-found"
166
+ "./app/page.js ( 2:1)
167
+ Module not found: Can't resolve 'b'
168
+ 1 | 'use client'
169
+ > 2 | import Comp from 'b'
170
+ | ^
171
+ 3 | export default function Oops() {
172
+ 4 | return (
173
+ 5 | <div>
174
+
175
+ https://nextjs.org/docs/messages/module-not-found"
176
176
` )
177
177
}
178
178
} )
@@ -199,29 +199,29 @@ describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
199
199
const source = await session . getRedboxSource ( )
200
200
if ( process . env . TURBOPACK ) {
201
201
expect ( source ) . toMatchInlineSnapshot ( `
202
- "./app/page.js: 2:1
203
- Module not found: Can't resolve './non-existent.css'
204
- 1 | 'use client'
205
- > 2 | import './non-existent.css'
206
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
207
- 3 | export default function Page(props) {
208
- 4 | return <p>index page</p>
209
- 5 | }
210
-
211
- https://nextjs.org/docs/messages/module-not-found"
202
+ "./app/page.js ( 2:1)
203
+ Module not found: Can't resolve './non-existent.css'
204
+ 1 | 'use client'
205
+ > 2 | import './non-existent.css'
206
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
207
+ 3 | export default function Page(props) {
208
+ 4 | return <p>index page</p>
209
+ 5 | }
210
+
211
+ https://nextjs.org/docs/messages/module-not-found"
212
212
` )
213
213
} else {
214
214
expect ( source ) . toMatchInlineSnapshot ( `
215
- "./app/page.js: 2:1
216
- Module not found: Can't resolve './non-existent.css'
217
- 1 | 'use client'
218
- > 2 | import './non-existent.css'
219
- | ^
220
- 3 | export default function Page(props) {
221
- 4 | return <p>index page</p>
222
- 5 | }
223
-
224
- https://nextjs.org/docs/messages/module-not-found"
215
+ "./app/page.js ( 2:1)
216
+ Module not found: Can't resolve './non-existent.css'
217
+ 1 | 'use client'
218
+ > 2 | import './non-existent.css'
219
+ | ^
220
+ 3 | export default function Page(props) {
221
+ 4 | return <p>index page</p>
222
+ 5 | }
223
+
224
+ https://nextjs.org/docs/messages/module-not-found"
225
225
` )
226
226
}
227
227
await session . patch (
0 commit comments