Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Dec 20, 2024
1 parent 0bc30e7 commit 806b3b9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions test/development/acceptance-app/ReactRefreshLogBox.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ export default function Home() {

if (isTurbopack) {
expect(source).toMatchInlineSnapshot(`
"app/utils.ts (1:7) @ [project]/app/utils.ts [app-client] (ecmascript)
"app/utils.ts (1:7) @ Object.{module evaluation}
> 1 | throw new Error('utils error')
| ^
Expand All @@ -1212,7 +1212,7 @@ export default function Home() {
if (isTurbopack) {
// FIXME: display the sourcemapped stack frames
expect(stackFrames).toMatchInlineSnapshot(
`"at [project]/app/page.js [app-client] (ecmascript) (app/page.js (2:1))"`
`"at Object.{module evaluation} (app/page.js (2:1))"`
)
} else {
// FIXME: Webpack stack frames are not source mapped
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions test/development/app-dir/ssr-in-rsc/ssr-in-rsc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ describe('react-dom/server in React Server environment', () => {
expect(redbox).toMatchInlineSnapshot(`
{
"description": "TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')",
"source": "app/exports/app-code/react-dom-server-node-explicit/page.js (1:1) @ [project]/app/exports/app-code/react-dom-server-node-explicit/page.js [app-rsc] (ecmascript)
"source": "app/exports/app-code/react-dom-server-node-explicit/page.js (1:1) @ Object.{module evaluation}
> 1 | import * as ReactDOMServerNode from 'react-dom/server.node'
| ^
Expand All @@ -335,7 +335,7 @@ describe('react-dom/server in React Server environment', () => {
expect(redbox).toMatchInlineSnapshot(`
{
"description": "Error: react-dom/server is not supported in React Server Components.",
"source": "app/exports/app-code/react-dom-server-node-explicit/page.js (1:1) @ [project]/app/exports/app-code/react-dom-server-node-explicit/page.js [app-rsc] (ecmascript)
"source": "app/exports/app-code/react-dom-server-node-explicit/page.js (1:1) @ Module.{module evaluation}
> 1 | import * as ReactDOMServerNode from 'react-dom/server.node'
| ^
Expand Down Expand Up @@ -435,7 +435,7 @@ describe('react-dom/server in React Server environment', () => {
expect(redbox).toMatchInlineSnapshot(`
{
"description": "TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')",
"source": "internal-pkg/server.node.js (1:1) @ [project]/internal-pkg/server.node.js [app-rsc] (ecmascript)
"source": "internal-pkg/server.node.js (1:1) @ Object.{module evaluation}
> 1 | import * as ReactDOMServerEdge from 'react-dom/server.node'
| ^
Expand All @@ -448,7 +448,7 @@ describe('react-dom/server in React Server environment', () => {
expect(redbox).toMatchInlineSnapshot(`
{
"description": "Error: react-dom/server is not supported in React Server Components.",
"source": "internal-pkg/server.node.js (1:1) @ [project]/internal-pkg/server.node.js [app-rsc] (ecmascript)
"source": "internal-pkg/server.node.js (1:1) @ Module.{module evaluation}
> 1 | import * as ReactDOMServerEdge from 'react-dom/server.node'
| ^
Expand Down Expand Up @@ -733,7 +733,7 @@ describe('react-dom/server in React Server environment', () => {
expect(redbox).toMatchInlineSnapshot(`
{
"description": "TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')",
"source": "internal-pkg/server.node.js (1:1) @ [project]/internal-pkg/server.node.js [app-rsc] (ecmascript)
"source": "internal-pkg/server.node.js (1:1) @ Object.{module evaluation}
> 1 | import * as ReactDOMServerEdge from 'react-dom/server.node'
| ^
Expand All @@ -746,7 +746,7 @@ describe('react-dom/server in React Server environment', () => {
expect(redbox).toMatchInlineSnapshot(`
{
"description": "Error: react-dom/server is not supported in React Server Components.",
"source": "internal-pkg/server.node.js (1:1) @ [project]/internal-pkg/server.node.js [app-rsc] (ecmascript)
"source": "internal-pkg/server.node.js (1:1) @ Module.{module evaluation}
> 1 | import * as ReactDOMServerEdge from 'react-dom/server.node'
| ^
Expand Down Expand Up @@ -791,7 +791,7 @@ describe('react-dom/server in React Server environment', () => {
expect(redbox).toMatchInlineSnapshot(`
{
"description": "TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')",
"source": "internal-pkg/server.node.js (1:1) @ [project]/internal-pkg/server.node.js [app-rsc] (ecmascript)
"source": "internal-pkg/server.node.js (1:1) @ Object.{module evaluation}
> 1 | import * as ReactDOMServerEdge from 'react-dom/server.node'
| ^
Expand All @@ -804,7 +804,7 @@ describe('react-dom/server in React Server environment', () => {
expect(redbox).toMatchInlineSnapshot(`
{
"description": "Error: react-dom/server is not supported in React Server Components.",
"source": "internal-pkg/server.node.js (1:1) @ [project]/internal-pkg/server.node.js [app-rsc] (ecmascript)
"source": "internal-pkg/server.node.js (1:1) @ Module.{module evaluation}
> 1 | import * as ReactDOMServerEdge from 'react-dom/server.node'
| ^
Expand Down
2 changes: 1 addition & 1 deletion test/development/middleware-errors/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ describe('middleware - development errors', () => {
isTurbopack
? '\n ⨯ Error: booooom!' +
// TODO(veil): Should be sourcemapped
'\n at [project]/middleware.js [middleware] (ecmascript)'
'\n at Object.__TURBOPACK__module__evaluation__ (middleware.js:3:12)'
: '\n ⨯ Error: booooom!' +
// TODO: Should be anonymous method without a method name
'\n at <unknown> (middleware.js:3)' +
Expand Down

0 comments on commit 806b3b9

Please sign in to comment.