Skip to content

Commit 07984ef

Browse files
copy and then remove original path
1 parent 60ee200 commit 07984ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/versions.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ test('dummy test', () => {
6464
afterAll(async () => {
6565
const originalPath = `${os.tmpdir()}/mysqlmsn`
6666
if (process.env.MOVE_MYSQLMSN_TO && fs.existsSync(originalPath)) {
67-
await fsPromises.rename(originalPath, process.env.MOVE_MYSQLMSN_TO)
67+
await fsPromises.cp(originalPath, process.env.MOVE_MYSQLMSN_TO, {recursive: true, force: true})
68+
await fsPromises.rm(originalPath, {force: true, recursive: true})
6869
}
6970
})

0 commit comments

Comments
 (0)