1- import { injectSentryInitPlugin } from '../../src/config/vitePlugins' ;
2-
31import * as fs from 'fs' ;
42
3+ import { injectSentryInitPlugin } from '../../src/config/vitePlugins' ;
4+
55describe ( 'injectSentryInitPlugin' , ( ) => {
66 it ( 'has its basic properties set' , ( ) => {
77 expect ( injectSentryInitPlugin . name ) . toBe ( 'sentry-init-injection-plugin' ) ;
@@ -19,7 +19,7 @@ describe('injectSentryInitPlugin', () => {
1919 // @ts -ignore -- transform is definitely defined and callable. Seems like TS doesn't know that.
2020 const result = injectSentryInitPlugin . transform ( code , id ) ;
2121
22- expect ( result . code ) . toMatch ( / f o o \( \) ; \n .* i m p o r t \ " .* s e n t r y \. s e r v e r \. c o n f i g \. t s \ "; / gm) ;
22+ expect ( result . code ) . toMatch ( / f o o \( \) ; \n .* i m p o r t " .* s e n t r y \. s e r v e r \. c o n f i g \. t s " ; / gm) ;
2323 expect ( result . map ) . toBeDefined ( ) ;
2424 } ) ;
2525
@@ -30,7 +30,7 @@ describe('injectSentryInitPlugin', () => {
3030 // @ts -ignore -- transform is definitely defined and callable. Seems like TS doesn't know that.
3131 const result = injectSentryInitPlugin . transform ( code , id ) ;
3232
33- expect ( result . code ) . toMatch ( / f o o \( \) ; \n .* i m p o r t \ " .* s e n t r y \. c l i e n t \. c o n f i g \. t s \ "; / gm) ;
33+ expect ( result . code ) . toMatch ( / f o o \( \) ; \n .* i m p o r t " .* s e n t r y \. c l i e n t \. c o n f i g \. t s " ; / gm) ;
3434 expect ( result . map ) . toBeDefined ( ) ;
3535 } ) ;
3636
@@ -41,7 +41,7 @@ describe('injectSentryInitPlugin', () => {
4141 // @ts -ignore -- transform is definitely defined and callable. Seems like TS doesn't know that.
4242 const result = injectSentryInitPlugin . transform ( code , id ) ;
4343
44- expect ( result . code ) . toMatch ( / f o o \( \) ; \n .* i m p o r t \ " .* s e n t r y \. c l i e n t \. c o n f i g \. t s \ "; / gm) ;
44+ expect ( result . code ) . toMatch ( / f o o \( \) ; \n .* i m p o r t " .* s e n t r y \. c l i e n t \. c o n f i g \. t s " ; / gm) ;
4545 expect ( result . map ) . toBeDefined ( ) ;
4646 } ) ;
4747
0 commit comments