@@ -18,7 +18,7 @@ describe('cli', () => {
1818 it ( 'should work with a simple file' , async ( ) => {
1919 const result = await cli ( '__fixtures__/simple/file.svg' )
2020 expect ( result ) . toMatchSnapshot ( )
21- } , 10000 )
21+ } )
2222
2323 it ( 'should not work with a directory without --out-dir option' , async ( ) => {
2424 expect . assertions ( 1 )
@@ -29,7 +29,7 @@ describe('cli', () => {
2929 'Directory are not supported without `--out-dir` option instead' ,
3030 )
3131 }
32- } , 10000 )
32+ } )
3333
3434 it ( 'should not work with several files without destination' , async ( ) => {
3535 expect . assertions ( 1 )
@@ -40,19 +40,19 @@ describe('cli', () => {
4040 'Please specify only one filename or use `--out-dir` option' ,
4141 )
4242 }
43- } , 10000 )
43+ } )
4444
4545 it ( 'should work with stdin' , async ( ) => {
4646 const result = await cli ( '< __fixtures__/simple/file.svg' )
4747 expect ( result ) . toMatchSnapshot ( )
48- } , 10000 )
48+ } )
4949
5050 it ( 'should support stdin filepath' , async ( ) => {
5151 const result = await cli (
5252 '--stdin-filepath __fixtures__/simple/file.svg < __fixtures__/simple/file.svg' ,
5353 )
5454 expect ( result ) . toMatchSnapshot ( )
55- } , 10000 )
55+ } )
5656
5757 it ( 'should transform a whole directory and output relative destination paths' , async ( ) => {
5858 const result = await cli ( '--out-dir __fixtures_build__/whole __fixtures__' )
@@ -62,7 +62,7 @@ describe('cli', () => {
6262 . map ( ( x ) => x . toLowerCase ( ) )
6363 . join ( '\n' )
6464 expect ( sorted ) . toMatchSnapshot ( )
65- } , 10000 )
65+ } )
6666
6767 it ( 'should transform a whole directory with --typescript' , async ( ) => {
6868 const result = await cli (
@@ -74,43 +74,43 @@ describe('cli', () => {
7474 . map ( ( x ) => x . toLowerCase ( ) )
7575 . join ( '\n' )
7676 expect ( sorted ) . toMatchSnapshot ( )
77- } , 10000 )
77+ } )
7878
7979 it ( 'should suppress output when transforming a directory with a --silent option' , async ( ) => {
8080 const result = await cli (
8181 '--silent --out-dir __fixtures_build__/whole __fixtures__' ,
8282 )
8383 const sorted = result . split ( / \n / ) . sort ( ) . join ( '\n' )
8484 expect ( sorted ) . toMatchSnapshot ( )
85- } , 10000 )
85+ } )
8686
8787 it ( 'should support --prettier-config as json' , async ( ) => {
8888 const result = await cli (
8989 `--prettier-config '{"tabWidth": 5}' __fixtures__/simple/file.svg` ,
9090 )
9191 expect ( result ) . toMatchSnapshot ( )
92- } , 10000 )
92+ } )
9393
9494 it ( 'should support --prettier-config as file' , async ( ) => {
9595 const result = await cli (
9696 `--prettier-config __fixtures__/withPrettierRc/.prettierrc __fixtures__/simple/file.svg` ,
9797 )
9898 expect ( result ) . toMatchSnapshot ( )
99- } , 10000 )
99+ } )
100100
101101 it ( 'should support --svgo-config as json' , async ( ) => {
102102 const result = await cli (
103103 `--svgo-config '{"plugins":[{"name":"preset-default","params":{"overrides":{"removeTitle":false}}}]}' __fixtures__/simple/file.svg` ,
104104 )
105105 expect ( result ) . toMatchSnapshot ( )
106- } , 10000 )
106+ } )
107107
108108 it ( 'should support --svgo-config as file' , async ( ) => {
109109 const result = await cli (
110110 `--svgo-config __fixtures__/withSvgoConfig/svgo.config.js __fixtures__/simple/file.svg` ,
111111 )
112112 expect ( result ) . toMatchSnapshot ( )
113- } , 10000 )
113+ } )
114114
115115 it . each ( [
116116 [ '--no-dimensions' ] ,
@@ -164,22 +164,22 @@ describe('cli', () => {
164164 await del ( outDir )
165165 await cli ( `--ext=ts ${ inDir } --out-dir=${ outDir } ` )
166166 expect ( await fs . readdir ( outDir ) ) . toMatchSnapshot ( )
167- } , 10000 )
167+ } )
168168
169169 it ( 'should support "--ignore-existing"' , async ( ) => {
170170 const inDir = '__fixtures__/simple'
171171 const outDir = '__fixtures__/simple-existing'
172172 await cli ( `${ inDir } --out-dir=${ outDir } --ignore-existing` )
173173 const content = await fs . readFile ( path . join ( outDir , 'File.js' ) , 'utf-8' )
174174 expect ( content ) . toBe ( '// nothing' )
175- } , 10000 )
175+ } )
176176
177177 it ( 'should not override config with cli defaults' , async ( ) => {
178178 const result = await cli (
179179 '__fixtures__/simple/file.svg --config-file=__fixtures__/overrides.config.js' ,
180180 )
181181 expect ( result ) . toMatchSnapshot ( )
182- } , 10000 )
182+ } )
183183
184184 it ( 'should add Svg prefix to index.js exports staring with number' , async ( ) => {
185185 const inDir = '__fixtures__/numeric'
@@ -188,7 +188,7 @@ describe('cli', () => {
188188 await cli ( `${ inDir } --out-dir=${ outDir } ` )
189189 const content = await fs . readFile ( path . join ( outDir , 'index.js' ) , 'utf-8' )
190190 expect ( content ) . toMatchSnapshot ( )
191- } , 10000 )
191+ } )
192192
193193 it ( 'should support custom index.js with directory output' , async ( ) => {
194194 const inDir = '__fixtures__/simple'
@@ -199,7 +199,7 @@ describe('cli', () => {
199199 )
200200 const content = await fs . readFile ( path . join ( outDir , 'index.js' ) , 'utf-8' )
201201 expect ( content ) . toMatchSnapshot ( )
202- } , 10000 )
202+ } )
203203
204204 it ( 'should support --index-template in cli' , async ( ) => {
205205 const inDir = '__fixtures__/simple'
@@ -210,13 +210,13 @@ describe('cli', () => {
210210 )
211211 const content = await fs . readFile ( path . join ( outDir , 'index.js' ) , 'utf-8' )
212212 expect ( content ) . toMatchSnapshot ( )
213- } , 10000 )
213+ } )
214214
215215 it ( 'should support --no-index' , async ( ) => {
216216 const inDir = '__fixtures__/simple'
217217 const outDir = `__fixtures_build__/no-index-case`
218218 await del ( outDir )
219219 await cli ( `--no-index ${ inDir } --out-dir=${ outDir } ` )
220220 expect ( await fs . readdir ( outDir ) ) . toMatchSnapshot ( )
221- } , 10000 )
221+ } )
222222} )
0 commit comments