Skip to content

Commit

Permalink
Update sourcemap tests due to recent Turbopack changes (#75954)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Feb 12, 2025
1 parent a71a764 commit e8093d7
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions test/e2e/app-dir/server-source-maps/server-source-maps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,12 @@ describe('app-dir - server source maps', () => {
? '\nError: Boom' +
'\n at logError (app/ssr-error-log-ignore-listed/page.js:9:16)' +
'\n at runWithInternalIgnored (app/ssr-error-log-ignore-listed/page.js:19:12)' +
// TODO(veil): Turbopack's sourcemap loader drops `ignoreList`
'\n at runInternalIgnored (internal-pkg/ignored.ts:6:9)' +
'\n at runWithExternalSourceMapped (app/ssr-error-log-ignore-listed/page.js:18:29)' +
'\n at runWithExternal (app/ssr-error-log-ignore-listed/page.js:17:32)' +
'\n at runWithInternalSourceMapped (app/ssr-error-log-ignore-listed/page.js:16:18)' +
// Realpath does not point into node_modules so we don't ignore it.
'\n at runInternalSourceMapped (internal-pkg/sourcemapped.ts:5:9)' +
// TODO(veil): Should be internal-pkg/sourcemapped.ts
'\n at runInternalSourceMapped (sourcemapped.ts:5:9)' +
'\n at runWithInternal (app/ssr-error-log-ignore-listed/page.js:15:28)' +
// Realpath does not point into node_modules so we don't ignore it.
'\n at runInternal (internal-pkg/index.js:2:9)' +
Expand All @@ -117,12 +116,14 @@ describe('app-dir - server source maps', () => {
'\n at logError (app/ssr-error-log-ignore-listed/page.js:9:16)' +
'\n at runWithInternalIgnored (app/ssr-error-log-ignore-listed/page.js:19:12)' +
// TODO(veil): Webpacks's sourcemap loader drops `ignoreList`
// TODO(veil): Webpack's sourcemap loader creates an incorrect `sources` entry
// TODO(veil): Webpack's sourcemap loader creates an incorrect `sources` entry.
// Can be worked around by using `./sourcemapped.ts` instead of `sourcemapped.ts`.
'\n at runInternalIgnored (webpack-internal:/(ssr)/internal-pkg/ignored.ts:6:9)' +
'\n at runWithExternalSourceMapped (app/ssr-error-log-ignore-listed/page.js:18:29)' +
'\n at runWithExternal (app/ssr-error-log-ignore-listed/page.js:17:32)' +
'\n at runWithInternalSourceMapped (app/ssr-error-log-ignore-listed/page.js:16:18)' +
// TODO(veil): Webpack's sourcemap loader creates an incorrect `sources` entry
// TODO(veil): Webpack's sourcemap loader creates an incorrect `sources` entry.
// Can be worked around by using `./sourcemapped.ts` instead of `sourcemapped.ts`.
// Realpath does not point into node_modules so we don't ignore it.
'\n at runInternalSourceMapped (webpack-internal:/(ssr)/internal-pkg/sourcemapped.ts:5:9)' +
'\n at runWithInternal (app/ssr-error-log-ignore-listed/page.js:15:28)' +
Expand Down Expand Up @@ -152,13 +153,12 @@ describe('app-dir - server source maps', () => {
? '\nError: Boom' +
'\n at logError (app/rsc-error-log-ignore-listed/page.js:9:16)' +
'\n at runWithInternalIgnored (app/rsc-error-log-ignore-listed/page.js:21:12)' +
// TODO(veil): Turbopack's sourcemap loader drops `ignoreList`
'\n at runInternalIgnored (internal-pkg/ignored.ts:6:9)' +
'\n at runWithExternalSourceMapped (app/rsc-error-log-ignore-listed/page.js:20:29)' +
'\n at runWithExternal (app/rsc-error-log-ignore-listed/page.js:19:32)' +
'\n at runWithInternalSourceMapped (app/rsc-error-log-ignore-listed/page.js:18:18)' +
// Realpath does not point into node_modules so we don't ignore it.
'\n at runInternalSourceMapped (internal-pkg/sourcemapped.ts:5:9)' +
// TODO(veil): Should be internal-pkg/sourcemapped.ts
'\n at runInternalSourceMapped (sourcemapped.ts:5:9)' +
'\n at runWithInternal (app/rsc-error-log-ignore-listed/page.js:17:28)' +
// Realpath does not point into node_modules so we don't ignore it.
'\n at runInternal (internal-pkg/index.js:2:9)' +
Expand All @@ -169,12 +169,14 @@ describe('app-dir - server source maps', () => {
'\n at logError (app/rsc-error-log-ignore-listed/page.js:9:16)' +
'\n at runWithInternalIgnored (app/rsc-error-log-ignore-listed/page.js:21:12)' +
// TODO(veil): Webpacks's sourcemap loader drops `ignoreList`
// TODO(veil): Webpack's sourcemap loader creates an incorrect `sources` entry
// TODO(veil): Webpack's sourcemap loader creates an incorrect `sources` entry.
// Can be worked around by using `./sourcemapped.ts` instead of `sourcemapped.ts`.
'\n at runInternalIgnored (webpack-internal:/(rsc)/internal-pkg/ignored.ts:6:9)' +
'\n at runWithExternalSourceMapped (app/rsc-error-log-ignore-listed/page.js:20:29)' +
'\n at runWithExternal (app/rsc-error-log-ignore-listed/page.js:19:32)' +
'\n at runWithInternalSourceMapped (app/rsc-error-log-ignore-listed/page.js:18:18)' +
// TODO(veil): Webpack's sourcemap loader creates an incorrect `sources` entry
// TODO(veil): Webpack's sourcemap loader creates an incorrect `sources` entry.
// Can be worked around by using `./sourcemapped.ts` instead of `sourcemapped.ts`.
// Realpath does not point into node_modules so we don't ignore it.
'\n at runInternalSourceMapped (webpack-internal:/(rsc)/internal-pkg/sourcemapped.ts:5:9)' +
'\n at runWithInternal (app/rsc-error-log-ignore-listed/page.js:17:28)' +
Expand Down

0 comments on commit e8093d7

Please sign in to comment.