File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,6 @@ describe('CLI', () => {
4141 } )
4242
4343 test ( 'init' , async ( ) => {
44- // Clean up config file before test to ensure fresh state
45- try {
46- await fs . unlink ( paths . config )
47- } catch {
48- // Ignore if file doesn't exist
49- }
50-
5144 const cmd = `node ${ binPath } init --cwd="${ testsCwd } "`
5245
5346 // init
@@ -87,7 +80,7 @@ describe('CLI', () => {
8780 expect ( styledSystemExists ) . toBeUndefined ( )
8881
8982 // Check that the `styled-system/jsx` was NOT created
90- await expect ( fs . access ( path . resolve ( paths . styledSystem , 'jsx' ) ) ) . rejects . toThrow ( )
83+ expect ( ( ) => fs . access ( path . resolve ( paths . styledSystem , 'jsx' ) ) ) . rejects . toThrow ( )
9184
9285 // Check that the `.cpuprof` file was created
9386 const cpuProfPath = output . split ( '[cpu-prof]' ) . pop ( ) ! . trim ( ) !
You can’t perform that action at this time.
0 commit comments