@@ -15,7 +15,7 @@ describe('buildClientSnippet', () => {
15
15
it ( 'returns a basic Sentry init call with default options' , ( ) => {
16
16
const snippet = buildClientSnippet ( { } ) ;
17
17
expect ( snippet ) . toMatchInlineSnapshot ( `
18
- "import * as Sentry from \\ "@sentry/astro\\ ";
18
+ "import * as Sentry from "@sentry/astro";
19
19
20
20
Sentry.init({
21
21
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -34,13 +34,13 @@ describe('buildClientSnippet', () => {
34
34
const snippet = buildClientSnippet ( allSdkOptions ) ;
35
35
36
36
expect ( snippet ) . toMatchInlineSnapshot ( `
37
- "import * as Sentry from \\ "@sentry/astro\\ ";
37
+ "import * as Sentry from "@sentry/astro";
38
38
39
39
Sentry.init({
40
- dsn: \\ "my-dsn\\ ",
40
+ dsn: "my-dsn",
41
41
debug: true,
42
- environment: \\ "staging\\ ",
43
- release: \\ "1.0.0\\ ",
42
+ environment: "staging",
43
+ release: "1.0.0",
44
44
tracesSampleRate: 0.3,
45
45
sampleRate: 0.2,
46
46
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
@@ -53,7 +53,7 @@ describe('buildClientSnippet', () => {
53
53
it ( 'does not include browserTracingIntegration if tracesSampleRate is 0' , ( ) => {
54
54
const snippet = buildClientSnippet ( { tracesSampleRate : 0 } ) ;
55
55
expect ( snippet ) . toMatchInlineSnapshot ( `
56
- "import * as Sentry from \\ "@sentry/astro\\ ";
56
+ "import * as Sentry from "@sentry/astro";
57
57
58
58
Sentry.init({
59
59
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -72,7 +72,7 @@ describe('buildClientSnippet', () => {
72
72
it ( 'does not include Replay if replay sample ratest are 0' , ( ) => {
73
73
const snippet = buildClientSnippet ( { replaysSessionSampleRate : 0 , replaysOnErrorSampleRate : 0 } ) ;
74
74
expect ( snippet ) . toMatchInlineSnapshot ( `
75
- "import * as Sentry from \\ "@sentry/astro\\ ";
75
+ "import * as Sentry from "@sentry/astro";
76
76
77
77
Sentry.init({
78
78
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -91,7 +91,7 @@ describe('buildServerSnippet', () => {
91
91
it ( 'returns a basic Sentry init call with default options' , ( ) => {
92
92
const snippet = buildServerSnippet ( { } ) ;
93
93
expect ( snippet ) . toMatchInlineSnapshot ( `
94
- "import * as Sentry from \\ "@sentry/astro\\ ";
94
+ "import * as Sentry from "@sentry/astro";
95
95
96
96
Sentry.init({
97
97
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -107,13 +107,13 @@ describe('buildServerSnippet', () => {
107
107
const snippet = buildServerSnippet ( allSdkOptions ) ;
108
108
109
109
expect ( snippet ) . toMatchInlineSnapshot ( `
110
- "import * as Sentry from \\ "@sentry/astro\\ ";
110
+ "import * as Sentry from "@sentry/astro";
111
111
112
112
Sentry.init({
113
- dsn: \\ "my-dsn\\ ",
113
+ dsn: "my-dsn",
114
114
debug: true,
115
- environment: \\ "staging\\ ",
116
- release: \\ "1.0.0\\ ",
115
+ environment: "staging",
116
+ release: "1.0.0",
117
117
tracesSampleRate: 0.3,
118
118
sampleRate: 0.2,
119
119
});"
0 commit comments