@@ -30,30 +30,30 @@ const isOwnerStackEnabled =
30
30
// FIXME: the methodName of the stack frame is not aligned between Turbopack and Webpack
31
31
expect ( stackFramesContent ) . toMatchInlineSnapshot ( `""` )
32
32
expect ( source ) . toMatchInlineSnapshot ( `
33
- "app/browser/browser-only.js (8:7) @ BrowserOnly
34
-
35
- 6 | return (
36
- 7 | <div>
37
- > 8 | <Foo />
38
- | ^
39
- 9 | </div>
40
- 10 | )
41
- 11 | }"
42
- ` )
33
+ "app/browser/browser-only.js (8:7) @ BrowserOnly
34
+
35
+ 6 | return (
36
+ 7 | <div>
37
+ > 8 | <Foo />
38
+ | ^
39
+ 9 | </div>
40
+ 10 | )
41
+ 11 | }"
42
+ ` )
43
43
} else {
44
44
// FIXME: the methodName of the stack frame is not aligned between Turbopack and Webpack
45
45
expect ( stackFramesContent ) . toMatchInlineSnapshot ( `""` )
46
46
expect ( source ) . toMatchInlineSnapshot ( `
47
- "app/browser/browser-only.js (8:8) @ Foo
48
-
49
- 6 | return (
50
- 7 | <div>
51
- > 8 | <Foo />
52
- | ^
53
- 9 | </div>
54
- 10 | )
55
- 11 | }"
56
- ` )
47
+ "app/browser/browser-only.js (8:8) @ Foo
48
+
49
+ 6 | return (
50
+ 7 | <div>
51
+ > 8 | <Foo />
52
+ | ^
53
+ 9 | </div>
54
+ 10 | )
55
+ 11 | }"
56
+ ` )
57
57
}
58
58
} )
59
59
@@ -67,29 +67,29 @@ const isOwnerStackEnabled =
67
67
if ( process . env . TURBOPACK ) {
68
68
expect ( stackFramesContent ) . toMatchInlineSnapshot ( `""` )
69
69
expect ( source ) . toMatchInlineSnapshot ( `
70
- "app/rsc/page.js (5:10) @ Inner
71
-
72
- 3 | // Intermediate component for testing owner stack
73
- 4 | function Inner() {
74
- > 5 | return <Foo />
75
- | ^
76
- 6 | }
77
- 7 |
78
- 8 | export default function Page() {"
79
- ` )
70
+ "app/rsc/page.js (5:10) @ Inner
71
+
72
+ 3 | // Intermediate component for testing owner stack
73
+ 4 | function Inner() {
74
+ > 5 | return <Foo />
75
+ | ^
76
+ 6 | }
77
+ 7 |
78
+ 8 | export default function Page() {"
79
+ ` )
80
80
} else {
81
81
expect ( stackFramesContent ) . toMatchInlineSnapshot ( `""` )
82
82
expect ( source ) . toMatchInlineSnapshot ( `
83
- "app/rsc/page.js (5:11) @ Foo
84
-
85
- 3 | // Intermediate component for testing owner stack
86
- 4 | function Inner() {
87
- > 5 | return <Foo />
88
- | ^
89
- 6 | }
90
- 7 |
91
- 8 | export default function Page() {"
92
- ` )
83
+ "app/rsc/page.js (5:11) @ Foo
84
+
85
+ 3 | // Intermediate component for testing owner stack
86
+ 4 | function Inner() {
87
+ > 5 | return <Foo />
88
+ | ^
89
+ 6 | }
90
+ 7 |
91
+ 8 | export default function Page() {"
92
+ ` )
93
93
}
94
94
} )
95
95
@@ -103,29 +103,29 @@ const isOwnerStackEnabled =
103
103
if ( process . env . TURBOPACK ) {
104
104
expect ( stackFramesContent ) . toMatchInlineSnapshot ( `""` )
105
105
expect ( source ) . toMatchInlineSnapshot ( `
106
- "app/ssr/page.js (7:10) @ Inner
107
-
108
- 5 | // Intermediate component for testing owner stack
109
- 6 | function Inner() {
110
- > 7 | return <Foo />
111
- | ^
112
- 8 | }
113
- 9 |
114
- 10 | export default function Page() {"
115
- ` )
106
+ "app/ssr/page.js (7:10) @ Inner
107
+
108
+ 5 | // Intermediate component for testing owner stack
109
+ 6 | function Inner() {
110
+ > 7 | return <Foo />
111
+ | ^
112
+ 8 | }
113
+ 9 |
114
+ 10 | export default function Page() {"
115
+ ` )
116
116
} else {
117
117
expect ( stackFramesContent ) . toMatchInlineSnapshot ( `""` )
118
118
expect ( source ) . toMatchInlineSnapshot ( `
119
- "app/ssr/page.js (7:11) @ Foo
120
-
121
- 5 | // Intermediate component for testing owner stack
122
- 6 | function Inner() {
123
- > 7 | return <Foo />
124
- | ^
125
- 8 | }
126
- 9 |
127
- 10 | export default function Page() {"
128
- ` )
119
+ "app/ssr/page.js (7:11) @ Foo
120
+
121
+ 5 | // Intermediate component for testing owner stack
122
+ 6 | function Inner() {
123
+ > 7 | return <Foo />
124
+ | ^
125
+ 8 | }
126
+ 9 |
127
+ 10 | export default function Page() {"
128
+ ` )
129
129
}
130
130
} )
131
131
}
0 commit comments