@@ -16,14 +16,14 @@ describe('plugin-config - sentry plugin', () => {
1616 await fs . remove ( tmpDir ) ;
1717 } ) ;
1818
19- const sentryPlugin = plugins . find ( ( p ) => p . name === 'sentry' ) ! ;
19+ const sentryPlugin = plugins . find ( ( p ) => p . name === 'sentry' ) ;
2020
2121 test ( 'sentry plugin exists in the plugins array' , ( ) => {
2222 expect ( sentryPlugin ) . toBeDefined ( ) ;
2323 } ) ;
2424
2525 test ( 'sentry bundleParams are { sentry: true, sourcemap: true }' , ( ) => {
26- expect ( sentryPlugin . bundleParams ) . toEqual ( {
26+ expect ( sentryPlugin ? .bundleParams ) . toEqual ( {
2727 sentry : true ,
2828 sourcemap : true ,
2929 } ) ;
@@ -34,7 +34,7 @@ describe('plugin-config - sentry plugin', () => {
3434 const origCwd = process . cwd ( ) ;
3535 process . chdir ( tmpDir ) ;
3636 try {
37- const result = await sentryPlugin . detect ( ) ;
37+ const result = await sentryPlugin ? .detect ( ) ;
3838 expect ( result ) . toBe ( false ) ;
3939 } finally {
4040 process . chdir ( origCwd ) ;
@@ -51,7 +51,7 @@ describe('plugin-config - sentry plugin', () => {
5151 const origCwd = process . cwd ( ) ;
5252 process . chdir ( tmpDir ) ;
5353 try {
54- const result = await sentryPlugin . detect ( ) ;
54+ const result = await sentryPlugin ? .detect ( ) ;
5555 expect ( result ) . toBe ( true ) ;
5656 } finally {
5757 process . chdir ( origCwd ) ;
@@ -68,7 +68,7 @@ describe('plugin-config - sentry plugin', () => {
6868 const origCwd = process . cwd ( ) ;
6969 process . chdir ( tmpDir ) ;
7070 try {
71- const result = await sentryPlugin . detect ( ) ;
71+ const result = await sentryPlugin ? .detect ( ) ;
7272 expect ( result ) . toBe ( true ) ;
7373 } finally {
7474 process . chdir ( origCwd ) ;
@@ -90,7 +90,7 @@ describe('plugin-config - sentry plugin', () => {
9090 const origCwd = process . cwd ( ) ;
9191 process . chdir ( tmpDir ) ;
9292 try {
93- const result = await sentryPlugin . detect ( ) ;
93+ const result = await sentryPlugin ? .detect ( ) ;
9494 expect ( result ) . toBe ( true ) ;
9595 } finally {
9696 process . chdir ( origCwd ) ;
0 commit comments