Skip to content

Commit

Permalink
Skip test in Experimental React
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jul 22, 2024
1 parent dda2ad2 commit c48e037
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
exports.createFromFetch = function (promiseForResponse, options) {
var response = createResponseFromOptions(options);
promiseForResponse.then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
exports.createFromFetch = function (promiseForResponse, options) {
var response = createResponseFromOptions(options);
promiseForResponse.then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2179,7 +2179,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
exports.createFromNodeStream = function (stream, ssrManifest, options) {
var response = new ResponseInstance(
ssrManifest.moduleMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
exports.createFromNodeStream = function (stream, ssrManifest, options) {
var response = new ResponseInstance(
ssrManifest.moduleMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2112,7 +2112,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
exports.createFromFetch = function (promiseForResponse, options) {
var response = createResponseFromOptions(options);
promiseForResponse.then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
exports.createFromFetch = function (promiseForResponse, options) {
var response = createResponseFromOptions(options);
promiseForResponse.then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2180,7 +2180,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
exports.createFromNodeStream = function (stream, ssrManifest, options) {
var response = new ResponseInstance(
ssrManifest.moduleMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
exports.createFromNodeStream = function (stream, ssrManifest, options) {
var response = new ResponseInstance(
ssrManifest.moduleMap,
Expand Down
7 changes: 6 additions & 1 deletion test/development/app-dir/dynamic-error-trace/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {
getRedboxSource,
} from 'next-test-utils'

const isPPREnabled = process.env.__NEXT_EXPERIMENTAL_PPR === 'true'
const gateNotReactExperimental = isPPREnabled ? it.failing : it

describe('app dir - dynamic error trace', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
Expand All @@ -27,15 +30,17 @@ describe('app dir - dynamic error trace', () => {
})
if (skipped) return

it('should show the error trace', async () => {
gateNotReactExperimental('should show the error trace', async () => {
const browser = await next.browser('/')
await assertHasRedbox(browser)
await expandCallStack(browser)
const callStack = await getRedboxCallStack(browser)

// eslint-disable-next-line jest/no-standalone-expect -- this is a test
expect(callStack).toContain('node_modules/headers-lib/index.mjs')

const source = await getRedboxSource(browser)
// eslint-disable-next-line jest/no-standalone-expect -- this is a test
expect(source).toContain('app/lib.js')
})
})

0 comments on commit c48e037

Please sign in to comment.