-
-
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(nuxt): Use
sentry.server.config.ts
in E2E tests (#13999)
The E2E tests still used an `instrument` file in the `public` folder (which is not the way to setup the SDK anymore) because `import-in-the-middle/hook.mjs` was not available and threw an error. To be able to properly test the setup with `sentry.server.config.ts`, a function was added that copies the `import-in-the-middle` folder to the build output to include all files.
- Loading branch information
Showing
12 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
dev-packages/e2e-tests/test-applications/nuxt-3/copyIITM.bash
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This script copies the `import-in-the-middle` content of the E2E test project root `node_modules` to the build output `node_modules` | ||
# For some reason, some files are missing in the output (like `hook.mjs`) and this is not reproducible in external, standalone projects. | ||
# | ||
# Things we tried (that did not fix the problem): | ||
# - Adding a resolution for `@vercel/nft` v0.27.0 (this worked in the standalone project) | ||
# - Also adding `@vercel/nft` v0.27.0 to pnpm `peerDependencyRules` | ||
cp -r node_modules/.pnpm/import-in-the-middle@1.*/node_modules/import-in-the-middle .output/server/node_modules/import-in-the-middle |
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
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
dev-packages/e2e-tests/test-applications/nuxt-4/copyIITM.bash
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This script copies the `import-in-the-middle` content of the E2E test project root `node_modules` to the build output `node_modules` | ||
# For some reason, some files are missing in the output (like `hook.mjs`) and this is not reproducible in external, standalone projects. | ||
# | ||
# Things we tried (that did not fix the problem): | ||
# - Adding a resolution for `@vercel/nft` v0.27.0 (this worked in the standalone project) | ||
# - Also adding `@vercel/nft` v0.27.0 to pnpm `peerDependencyRules` | ||
cp -r node_modules/.pnpm/import-in-the-middle@1.*/node_modules/import-in-the-middle .output/server/node_modules/import-in-the-middle |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
dev-packages/e2e-tests/test-applications/nuxt-4/tests/errors.client.test.ts
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
2 changes: 1 addition & 1 deletion
2
dev-packages/e2e-tests/test-applications/nuxt-4/tests/tracing.client.test.ts
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