Skip to content

Commit

Permalink
test(e2e): Add Angular 17 E2E test (#10427)
Browse files Browse the repository at this point in the history
This PR adds an e2e test app for Angular with 3 tests:

1. SDK sends error
2. SDK sends parameterized pageload transaction
3. SDK sends parameterized navigation transaction
  • Loading branch information
Lms24 committed Jan 31, 2024
1 parent 5d10cdb commit e168692
Show file tree
Hide file tree
Showing 24 changed files with 825 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ jobs:
matrix:
test-application:
[
'angular-17',
'cloudflare-astro',
'node-express-app',
'create-react-app',
Expand Down
17 changes: 15 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,18 @@
"noDelete": "off"
}
},
"ignore": [".vscode/*", "**/*.json", ".next/**/*", ".svelte-kit/**/*"]
"ignore": [
".vscode/*",
"**/*.json",
".next/**/*",
".svelte-kit/**/*",
"**/fixtures/*/*.json",
"**/*.min.js",
".next/**",
".svelte-kit/**",
".angular/**",
"angular.json"
]
},
"files": {
"ignoreUnknown": true
Expand All @@ -51,7 +62,9 @@
"**/fixtures/*/*.json",
"**/*.min.js",
".next/**",
".svelte-kit/**"
".svelte-kit/**",
".angular/**",
"angular.json"
]
},
"javascript": {
Expand Down
16 changes: 16 additions & 0 deletions dev-packages/e2e-tests/test-applications/angular-17/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
42 changes: 42 additions & 0 deletions dev-packages/e2e-tests/test-applications/angular-17/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
2 changes: 2 additions & 0 deletions dev-packages/e2e-tests/test-applications/angular-17/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@sentry:registry=http://127.0.0.1:4873
@sentry-internal:registry=http://127.0.0.1:4873
3 changes: 3 additions & 0 deletions dev-packages/e2e-tests/test-applications/angular-17/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Angular17

E2E test app for Angular 17 and `@sentry/angular-ivy`.
95 changes: 95 additions & 0 deletions dev-packages/e2e-tests/test-applications/angular-17/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"angular-17": {
"projectType": "application",
"schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/angular-17",
"index": "src/index.html",
"browser": "src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"buildTarget": "angular-17:build:production"
},
"development": {
"buildTarget": "angular-17:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "angular-17:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": []
}
}
}
}
}
}
Loading

0 comments on commit e168692

Please sign in to comment.