Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
- Use `rm` instead of deprecated `rmdir`
- Type the returnType correctly
  • Loading branch information
RobinMalfait committed Oct 17, 2022
1 parent a948ca5 commit 441e362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions standalone-cli/tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ it('supports postcss config files', async () => {
/**
* @template T
* @param {() => T} fn
* @returns {T}
* @returns {Promise<T>}
*/
async function inIsolatedContext(fn) {
// Create a new directory entirely outside of the package for the test
Expand Down Expand Up @@ -79,6 +79,6 @@ async function inIsolatedContext(fn) {
process.chdir(__dirname)

// Delete the new directory
await fs.rmdir(dest, { recursive: true })
await fs.rm(dest, { recursive: true })
}
}

0 comments on commit 441e362

Please sign in to comment.