diff --git a/test/development/acceptance-app/ReactRefreshLogBox.test.ts b/test/development/acceptance-app/ReactRefreshLogBox.test.ts index ef1623a5671b0..67f01a1638ae9 100644 --- a/test/development/acceptance-app/ReactRefreshLogBox.test.ts +++ b/test/development/acceptance-app/ReactRefreshLogBox.test.ts @@ -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') | ^ @@ -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 diff --git a/test/development/acceptance-app/__snapshots__/ReactRefreshLogBox.test.ts.snap b/test/development/acceptance-app/__snapshots__/ReactRefreshLogBox.test.ts.snap index a456992ba976b..27bf85a43f033 100644 --- a/test/development/acceptance-app/__snapshots__/ReactRefreshLogBox.test.ts.snap +++ b/test/development/acceptance-app/__snapshots__/ReactRefreshLogBox.test.ts.snap @@ -169,7 +169,7 @@ exports[`ReactRefreshLogBox app turbo logbox: anchors links in error messages 6` exports[`ReactRefreshLogBox app turbo logbox: anchors links in error messages 7`] = `"https://nextjs.org/"`; exports[`ReactRefreshLogBox app turbo module init error not shown 1`] = ` -"index.js (3:7) @ [project]/index.js [app-client] (ecmascript) +"index.js (3:7) @ Module.{module evaluation} 1 | // top offset for snapshot 2 | import * as React from 'react'; diff --git a/test/development/acceptance/__snapshots__/ReactRefreshLogBox.test.ts.snap b/test/development/acceptance/__snapshots__/ReactRefreshLogBox.test.ts.snap index 32c7f29e6d528..08db729a4591f 100644 --- a/test/development/acceptance/__snapshots__/ReactRefreshLogBox.test.ts.snap +++ b/test/development/acceptance/__snapshots__/ReactRefreshLogBox.test.ts.snap @@ -114,7 +114,7 @@ exports[`ReactRefreshLogBox turbo logbox: anchors links in error messages 8`] = exports[`ReactRefreshLogBox turbo logbox: anchors links in error messages 10`] = `"https://nextjs.org/"`; exports[`ReactRefreshLogBox turbo module init error not shown 1`] = ` -"index.js (3:7) @ [project]/index.js [ssr] (ecmascript) +"index.js (3:7) @ Object.{module evaluation} 1 | // top offset for snapshot 2 | import * as React from 'react'; diff --git a/test/development/app-dir/ssr-in-rsc/ssr-in-rsc.test.ts b/test/development/app-dir/ssr-in-rsc/ssr-in-rsc.test.ts index 360b1b920b286..fd503afd83aaf 100644 --- a/test/development/app-dir/ssr-in-rsc/ssr-in-rsc.test.ts +++ b/test/development/app-dir/ssr-in-rsc/ssr-in-rsc.test.ts @@ -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' | ^ @@ -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' | ^ @@ -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' | ^ @@ -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' | ^ @@ -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' | ^ @@ -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' | ^ @@ -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' | ^ @@ -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' | ^ diff --git a/test/development/middleware-errors/index.test.ts b/test/development/middleware-errors/index.test.ts index e4df9a1840b42..a193c3fb79f68 100644 --- a/test/development/middleware-errors/index.test.ts +++ b/test/development/middleware-errors/index.test.ts @@ -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 (middleware.js:3)' +