Skip to content

Commit 670bbd8

Browse files
committed
test: revert cli changes
1 parent 94aef78 commit 670bbd8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/cli/__tests__/cli.test.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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()!

0 commit comments

Comments
 (0)