@@ -15,7 +15,7 @@ describe('buildClientSnippet', () => {
1515 it ( 'returns a basic Sentry init call with default options' , ( ) => {
1616 const snippet = buildClientSnippet ( { } ) ;
1717 expect ( snippet ) . toMatchInlineSnapshot ( `
18- "import * as Sentry from \\ "@sentry/astro\\ ";
18+ "import * as Sentry from "@sentry/astro";
1919
2020 Sentry.init({
2121 dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -34,13 +34,13 @@ describe('buildClientSnippet', () => {
3434 const snippet = buildClientSnippet ( allSdkOptions ) ;
3535
3636 expect ( snippet ) . toMatchInlineSnapshot ( `
37- "import * as Sentry from \\ "@sentry/astro\\ ";
37+ "import * as Sentry from "@sentry/astro";
3838
3939 Sentry.init({
40- dsn: \\ "my-dsn\\ ",
40+ dsn: "my-dsn",
4141 debug: true,
42- environment: \\ "staging\\ ",
43- release: \\ "1.0.0\\ ",
42+ environment: "staging",
43+ release: "1.0.0",
4444 tracesSampleRate: 0.3,
4545 sampleRate: 0.2,
4646 integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
@@ -53,7 +53,7 @@ describe('buildClientSnippet', () => {
5353 it ( 'does not include browserTracingIntegration if tracesSampleRate is 0' , ( ) => {
5454 const snippet = buildClientSnippet ( { tracesSampleRate : 0 } ) ;
5555 expect ( snippet ) . toMatchInlineSnapshot ( `
56- "import * as Sentry from \\ "@sentry/astro\\ ";
56+ "import * as Sentry from "@sentry/astro";
5757
5858 Sentry.init({
5959 dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -72,7 +72,7 @@ describe('buildClientSnippet', () => {
7272it ( 'does not include Replay if replay sample ratest are 0' , ( ) => {
7373 const snippet = buildClientSnippet ( { replaysSessionSampleRate : 0 , replaysOnErrorSampleRate : 0 } ) ;
7474 expect ( snippet ) . toMatchInlineSnapshot ( `
75- "import * as Sentry from \\ "@sentry/astro\\ ";
75+ "import * as Sentry from "@sentry/astro";
7676
7777 Sentry.init({
7878 dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -91,7 +91,7 @@ describe('buildServerSnippet', () => {
9191 it ( 'returns a basic Sentry init call with default options' , ( ) => {
9292 const snippet = buildServerSnippet ( { } ) ;
9393 expect ( snippet ) . toMatchInlineSnapshot ( `
94- "import * as Sentry from \\ "@sentry/astro\\ ";
94+ "import * as Sentry from "@sentry/astro";
9595
9696 Sentry.init({
9797 dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -107,13 +107,13 @@ describe('buildServerSnippet', () => {
107107 const snippet = buildServerSnippet ( allSdkOptions ) ;
108108
109109 expect ( snippet ) . toMatchInlineSnapshot ( `
110- "import * as Sentry from \\ "@sentry/astro\\ ";
110+ "import * as Sentry from "@sentry/astro";
111111
112112 Sentry.init({
113- dsn: \\ "my-dsn\\ ",
113+ dsn: "my-dsn",
114114 debug: true,
115- environment: \\ "staging\\ ",
116- release: \\ "1.0.0\\ ",
115+ environment: "staging",
116+ release: "1.0.0",
117117 tracesSampleRate: 0.3,
118118 sampleRate: 0.2,
119119 });"
0 commit comments