try ignore eperm

This commit is contained in:
Cory Miller
2023-02-17 20:37:22 +00:00
parent 6a357de342
commit 6a3c62d3a8
2 changed files with 4 additions and 8 deletions

View File

@@ -193,7 +193,6 @@ describe('cp', () => {
describe('mv', () => {
beforeAll(async () => {
console.log('before')
await io.rmRF(getTestTemp())
})
@@ -201,13 +200,9 @@ describe('mv', () => {
const root = path.join(getTestTemp(), ' mv_with_no_flags')
const sourceFile = path.join(root, ' mv_source')
const targetFile = path.join(root, ' mv_target')
console.log('make')
await io.mkdirP(root)
console.log('write')
await fs.writeFile(sourceFile, 'test file content', {encoding: 'utf8'})
console.log('move')
await io.mv(sourceFile, targetFile)
console.log('read')
expect(await fs.readFile(targetFile, {encoding: 'utf8'})).toBe(
'test file content'
)