Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/settings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
],
"deny": []
}
}
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
packages/browser/test/loader.js
packages/replay-worker/examples/worker.min.js
dev-packages/browser-integration-tests/fixtures
**/test.ts-snapshots/**
7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion dev-packages/cloudflare-integration-tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
// Although this seems wrong to include `DOM` here, it's necessary to make
// global fetch available in tests in lower Node versions.
"lib": ["ES2020"],
"esModuleInterop": true,
"esModuleInterop": true
}
}
27 changes: 6 additions & 21 deletions dev-packages/e2e-tests/test-applications/angular-17/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,10 @@
"outputPath": "dist/angular-17",
"index": "src/index.html",
"browser": "src/main.ts",
"polyfills": [
"zone.js"
],
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -74,18 +67,10 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"scripts": []
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { SampleComponent } from '../sample-component/sample-component.components
standalone: true,
imports: [TraceModule, SampleComponent],
template: `
<app-sample-component [trace]="'sample-component'"></app-sample-component>
<app-sample-component trace></app-sample-component>
<app-sample-component [trace]="'sample-component'"></app-sample-component>
<app-sample-component trace></app-sample-component>
`,
})
@TraceClass({ name: 'ComponentTrackingComponent' })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import { RouterLink } from '@angular/router';
standalone: true,
imports: [RouterLink],
template: `
<main>
<h1>Welcome to Sentry's Angular 17 E2E test app</h1>
<ul>
<li> <a id="navLink" [routerLink]="['/users', '123']">Visit User 123</a> </li>
<li> <a id="redirectLink" [routerLink]="['/redirect1']">Redirect</a> </li>
<li> <a id="cancelLink" [routerLink]="['/cancel']">Cancel</a> </li>
<li> <a id="nonExistentLink" [routerLink]="['/non-existent']">Error</a> </li>
<li> <a id="componentTracking" [routerLink]="['/component-tracking']">Component Tracking</a> </li>
</ul>
<button id="errorBtn" (click)="throwError()">Throw error</button>
</main>
`,
<main>
<h1>Welcome to Sentry's Angular 17 E2E test app</h1>
<ul>
<li><a id="navLink" [routerLink]="['/users', '123']">Visit User 123</a></li>
<li><a id="redirectLink" [routerLink]="['/redirect1']">Redirect</a></li>
<li><a id="cancelLink" [routerLink]="['/cancel']">Cancel</a></li>
<li><a id="nonExistentLink" [routerLink]="['/non-existent']">Error</a></li>
<li><a id="componentTracking" [routerLink]="['/component-tracking']">Component Tracking</a></li>
</ul>
<button id="errorBtn" (click)="throwError()">Throw error</button>
</main>
`,
})
export class HomeComponent {
throwError() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
"lib": [
"ES2022",
"dom"
]
"lib": ["ES2022", "dom"]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down
27 changes: 6 additions & 21 deletions dev-packages/e2e-tests/test-applications/angular-18/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,10 @@
"outputPath": "dist/angular-18",
"index": "src/index.html",
"browser": "src/main.ts",
"polyfills": [
"zone.js"
],
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -74,18 +67,10 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"scripts": []
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import { RouterLink } from '@angular/router';
standalone: true,
imports: [RouterLink],
template: `
<main>
<h1>Welcome to Sentry's Angular 18 E2E test app</h1>
<ul>
<li> <a id="navLink" [routerLink]="['/users', '123']">Visit User 123</a> </li>
<li> <a id="redirectLink" [routerLink]="['/redirect1']">Redirect</a> </li>
<li> <a id="cancelLink" [routerLink]="['/cancel']">Cancel</a> </li>
<li> <a id="nonExistentLink" [routerLink]="['/non-existent']">Error</a> </li>
<li> <a id="componentTracking" [routerLink]="['/component-tracking']">Component Tracking</a> </li>
</ul>
<button id="errorBtn" (click)="throwError()">Throw error</button>
</main>
`,
<main>
<h1>Welcome to Sentry's Angular 18 E2E test app</h1>
<ul>
<li><a id="navLink" [routerLink]="['/users', '123']">Visit User 123</a></li>
<li><a id="redirectLink" [routerLink]="['/redirect1']">Redirect</a></li>
<li><a id="cancelLink" [routerLink]="['/cancel']">Cancel</a></li>
<li><a id="nonExistentLink" [routerLink]="['/non-existent']">Error</a></li>
<li><a id="componentTracking" [routerLink]="['/component-tracking']">Component Tracking</a></li>
</ul>
<button id="errorBtn" (click)="throwError()">Throw error</button>
</main>
`,
})
export class HomeComponent {
throwError() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
"lib": [
"ES2022",
"dom"
]
"lib": ["ES2022", "dom"]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down
17 changes: 4 additions & 13 deletions dev-packages/e2e-tests/test-applications/angular-19/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@
"outputPath": "dist/angular-19",
"index": "src/index.html",
"browser": "src/main.ts",
"polyfills": [
"zone.js"
],
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": [
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"src/styles.css"
],
"styles": ["src/styles.css"],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -73,20 +69,15 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
"assets": [
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"src/styles.css"
],
"styles": ["src/styles.css"],
"scripts": []
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SampleComponent } from '../sample-component/sample-component.components
template: `
<app-sample-component trace="sample-component"></app-sample-component>
<app-sample-component trace></app-sample-component>
`,
`,
})
@TraceClass({ name: 'ComponentTrackingComponent' })
export class ComponentTrackingComponent implements OnInit, AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import { RouterLink } from '@angular/router';
standalone: true,
imports: [RouterLink],
template: `
<main>
<h1>Welcome to Sentry's Angular 19 E2E test app</h1>
<ul>
<li> <a id="navLink" [routerLink]="['/users', '123']">Visit User 123</a> </li>
<li> <a id="redirectLink" [routerLink]="['/redirect1']">Redirect</a> </li>
<li> <a id="cancelLink" [routerLink]="['/cancel']">Cancel</a> </li>
<li> <a id="nonExistentLink" [routerLink]="['/non-existent']">Error</a> </li>
<li> <a id="componentTracking" [routerLink]="['/component-tracking']">Component Tracking</a> </li>
</ul>
<button id="errorBtn" (click)="throwError()">Throw error</button>
</main>
`,
<main>
<h1>Welcome to Sentry's Angular 19 E2E test app</h1>
<ul>
<li><a id="navLink" [routerLink]="['/users', '123']">Visit User 123</a></li>
<li><a id="redirectLink" [routerLink]="['/redirect1']">Redirect</a></li>
<li><a id="cancelLink" [routerLink]="['/cancel']">Cancel</a></li>
<li><a id="nonExistentLink" [routerLink]="['/non-existent']">Error</a></li>
<li><a id="componentTracking" [routerLink]="['/component-tracking']">Component Tracking</a></li>
</ul>
<button id="errorBtn" (click)="throwError()">Throw error</button>
</main>
`,
})
export class HomeComponent {
throwError() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SampleComponent } from '../sample-component/sample-component.components
template: `
<app-sample-component trace="sample-component"></app-sample-component>
<app-sample-component trace></app-sample-component>
`,
`,
})
@TraceClass({ name: 'ComponentTrackingComponent' })
export class ComponentTrackingComponent implements OnInit, AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,39 +1,34 @@
---
interface Props {
title: string;
title: string;
}

const { title } = Astro.props;
---

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<slot />
</body>
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<slot />
</body>
</html>
<style is:global>
:root {
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
--accent-gradient: linear-gradient(
45deg,
rgb(var(--accent)),
rgb(var(--accent-light)) 30%,
white 60%
);
}
html {
font-family: system-ui, sans-serif;
background: #b7b7b7;
}
:root {
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
--accent-gradient: linear-gradient(45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60%);
}
html {
font-family: system-ui, sans-serif;
background: #b7b7b7;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Layout from '../../layouts/Layout.astro';
export const prerender = false;

const params = Astro.params;

---

<Layout title="CatchAll SSR page">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
---
import Layout from "../../layouts/Layout.astro";
import Layout from '../../layouts/Layout.astro';
---

<Layout title="Client Error">

<button id="#errBtn" onclick="throw new Error('client error')">
Throw Error
</button>

<button id="#errBtn" onclick="throw new Error('client error')"> Throw Error </button>
</Layout>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Layout from "../../layouts/Layout.astro";
import Layout from '../../layouts/Layout.astro';

export const prerender = false;
---
Expand Down
Loading
Loading