1
- import { injectSentryInitPlugin } from '../../src/config/vitePlugins' ;
2
-
3
1
import * as fs from 'fs' ;
4
2
3
+ import { injectSentryInitPlugin } from '../../src/config/vitePlugins' ;
4
+
5
5
describe ( 'injectSentryInitPlugin' , ( ) => {
6
6
it ( 'has its basic properties set' , ( ) => {
7
7
expect ( injectSentryInitPlugin . name ) . toBe ( 'sentry-init-injection-plugin' ) ;
@@ -19,7 +19,7 @@ describe('injectSentryInitPlugin', () => {
19
19
// @ts -ignore -- transform is definitely defined and callable. Seems like TS doesn't know that.
20
20
const result = injectSentryInitPlugin . transform ( code , id ) ;
21
21
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) ;
23
23
expect ( result . map ) . toBeDefined ( ) ;
24
24
} ) ;
25
25
@@ -30,7 +30,7 @@ describe('injectSentryInitPlugin', () => {
30
30
// @ts -ignore -- transform is definitely defined and callable. Seems like TS doesn't know that.
31
31
const result = injectSentryInitPlugin . transform ( code , id ) ;
32
32
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) ;
34
34
expect ( result . map ) . toBeDefined ( ) ;
35
35
} ) ;
36
36
@@ -41,7 +41,7 @@ describe('injectSentryInitPlugin', () => {
41
41
// @ts -ignore -- transform is definitely defined and callable. Seems like TS doesn't know that.
42
42
const result = injectSentryInitPlugin . transform ( code , id ) ;
43
43
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) ;
45
45
expect ( result . map ) . toBeDefined ( ) ;
46
46
} ) ;
47
47
0 commit comments