Skip to content

Commit 441e362

Browse files
committed
cleanup tests
- Use `rm` instead of deprecated `rmdir` - Type the returnType correctly
1 parent a948ca5 commit 441e362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

standalone-cli/tests/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ it('supports postcss config files', async () => {
5151
/**
5252
* @template T
5353
* @param {() => T} fn
54-
* @returns {T}
54+
* @returns {Promise<T>}
5555
*/
5656
async function inIsolatedContext(fn) {
5757
// Create a new directory entirely outside of the package for the test
@@ -79,6 +79,6 @@ async function inIsolatedContext(fn) {
7979
process.chdir(__dirname)
8080

8181
// Delete the new directory
82-
await fs.rmdir(dest, { recursive: true })
82+
await fs.rm(dest, { recursive: true })
8383
}
8484
}

0 commit comments

Comments
 (0)