@@ -21,7 +21,7 @@ describe('DevcertPlugin', () => {
2121 const userConfig = { server : { https : { key : 'a' , cert : 'b' } } } ;
2222
2323 // @ts -expect-error It's a test, so we can ignore type errors
24- const result = await plugin . config ( userConfig , { command : 'serve' , mode : 'development' } ) ;
24+ const result = await plugin . config ( userConfig , { command : 'serve' } ) ;
2525
2626 expect ( warn ) . toHaveBeenCalledWith ( '! Skipping devcert, key and cert already provided.' ) ;
2727 expect ( result ) . toBe ( userConfig ) ;
@@ -33,7 +33,7 @@ describe('DevcertPlugin', () => {
3333 const userConfig = { server : { } } ;
3434
3535 // @ts -expect-error It's a test, so we can ignore type errors
36- const result = await plugin . config ( userConfig , { command : 'serve' , mode : 'development' } ) ;
36+ const result = await plugin . config ( userConfig , { command : 'serve' } ) ;
3737
3838 expect ( result ?. server ?. https ?. key ) . toBe ( 'mock-key' ) ;
3939 expect ( result ?. server ?. https ?. cert ) . toBe ( 'mock-cert' ) ;
@@ -48,14 +48,4 @@ describe('DevcertPlugin', () => {
4848
4949 expect ( result ) . toBeUndefined ( ) ;
5050 } ) ;
51-
52- it ( 'does nothing if mode is not development' , async ( ) => {
53- const plugin = DevcertPlugin ( ) ;
54- const userConfig = { server : { } } ;
55-
56- // @ts -expect-error It's a test, so we can ignore type errors
57- const result = await plugin . config ( userConfig , { mode : 'production' } ) ;
58-
59- expect ( result ) . toBeUndefined ( ) ;
60- } ) ;
6151} ) ;
0 commit comments