test: fix fs.rmdir deprecation warning (#36578)

This commit is contained in:
Max Schmitt
2025-07-07 19:58:56 +02:00
committed by GitHub
parent 1a037210bd
commit cbd040d453
+1 -1
View File
@@ -45,7 +45,7 @@ test('cli should work', async ({ exec, tmpWorkspace }) => {
expect(fs.readdirSync(userDataDir).length).toBeGreaterThan(0);
expect(result).toContain(`{ page }`);
} finally {
fs.rmdirSync(userDataDir, { recursive: true });
fs.rmSync(userDataDir, { recursive: true });
}
});