-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): Create event dumps for all Next.js test apps (#14034)
- create dumps for all nextjs apps - wipe old dumps when testing - bump timeouts we experience in other branches too
- Loading branch information
Showing
10 changed files
with
41 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,5 +38,6 @@ next-env.d.ts | |
!*.d.ts | ||
|
||
test-results | ||
event-dumps | ||
|
||
.vscode |
8 changes: 8 additions & 0 deletions
8
dev-packages/e2e-tests/test-applications/nextjs-13/start-event-proxy.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
import * as fs from 'fs'; | ||
import * as path from 'path'; | ||
import { startEventProxyServer } from '@sentry-internal/test-utils'; | ||
|
||
const packageJson = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'))); | ||
|
||
startEventProxyServer({ | ||
port: 3031, | ||
proxyServerName: 'nextjs-13', | ||
envelopeDumpPath: path.join( | ||
process.cwd(), | ||
`event-dumps/next-13-v${packageJson.dependencies.next}-${process.env.TEST_ENV}.dump`, | ||
), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ next-env.d.ts | |
.vscode | ||
|
||
test-results | ||
event-dumps |
8 changes: 8 additions & 0 deletions
8
dev-packages/e2e-tests/test-applications/nextjs-14/start-event-proxy.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
import * as fs from 'fs'; | ||
import * as path from 'path'; | ||
import { startEventProxyServer } from '@sentry-internal/test-utils'; | ||
|
||
const packageJson = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'))); | ||
|
||
startEventProxyServer({ | ||
port: 3031, | ||
proxyServerName: 'nextjs-14', | ||
envelopeDumpPath: path.join( | ||
process.cwd(), | ||
`event-dumps/next-14-v${packageJson.dependencies.next}-${process.env.TEST_ENV}.dump`, | ||
), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ next-env.d.ts | |
.vscode | ||
|
||
test-results | ||
event-dumps |
8 changes: 8 additions & 0 deletions
8
dev-packages/e2e-tests/test-applications/nextjs-app-dir/start-event-proxy.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
import * as fs from 'fs'; | ||
import * as path from 'path'; | ||
import { startEventProxyServer } from '@sentry-internal/test-utils'; | ||
|
||
const packageJson = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'))); | ||
|
||
startEventProxyServer({ | ||
port: 3031, | ||
proxyServerName: 'nextjs-app-dir', | ||
envelopeDumpPath: path.join( | ||
process.cwd(), | ||
`event-dumps/next-app-dir-v${packageJson.dependencies.next}-${process.env.TEST_ENV}.dump`, | ||
), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters