@@ -15,8 +15,11 @@ describe('TsRuntimePickerVitePlugin', () => {
1515 it ( 'should create a Vite plugin with the correct configuration' , ( ) => {
1616 const plugin = TsRuntimePickerVitePlugin ( ) ;
1717
18+ // @ts -ignore
1819 expect ( plugin . name ) . toBe ( 'vite-plugin-ts-runtime-picker' ) ;
20+ // @ts -ignore
1921 expect ( plugin . enforce ) . toBe ( 'pre' ) ;
22+ // @ts -ignore
2023 expect ( typeof plugin . transform ) . toBe ( 'function' ) ;
2124 } ) ;
2225
@@ -25,6 +28,7 @@ describe('TsRuntimePickerVitePlugin', () => {
2528 const code = 'const x = 1;' ;
2629 const id = 'file.ts' ;
2730
31+ // @ts -ignore
2832 const result = plugin . transform ( code , id ) ;
2933
3034 expect ( transformer . transform ) . toHaveBeenCalledWith ( code , id ) ;
@@ -39,6 +43,7 @@ describe('TsRuntimePickerVitePlugin', () => {
3943 const code = 'const x = <div />;' ;
4044 const id = 'file.tsx' ;
4145
46+ // @ts -ignore
4247 const result = plugin . transform ( code , id ) ;
4348
4449 expect ( transformer . transform ) . toHaveBeenCalledWith ( code , id ) ;
@@ -53,6 +58,7 @@ describe('TsRuntimePickerVitePlugin', () => {
5358 const code = 'const x = 1;' ;
5459 const id = 'file.js' ;
5560
61+ // @ts -ignore
5662 const result = plugin . transform ( code , id ) ;
5763
5864 expect ( transformer . transform ) . not . toHaveBeenCalled ( ) ;
0 commit comments