Closed kuy closed 8 years ago
I'm working on this issue.
In v6.2.1, rimraf()
doesn't execute the given callback function.
But rimraf passes unit tests without errors on v6.
beforeEach(function (done) {
TEST_DIR = path.join(os.tmpdir(), 'jsonfile-tests-readfile-sync')
rimraf(TEST_DIR, function () {
fs.mkdir(TEST_DIR, done)
})
})
afterEach(function (done) {
rimraf(TEST_DIR, done)
})
beforeEach(function (done) {
TEST_DIR = path.join(os.tmpdir(), 'jsonfile-tests-readfile-sync')
rimraf.sync(TEST_DIR)
fs.mkdirSync(TEST_DIR)
done()
})
afterEach(function (done) {
rimraf.sync(TEST_DIR)
done()
})
Excellent, thanks for looking at this. PR accepted.
Already accepted? (or typo?) It doesn't look so... Can I continue to tackle this issue and send PR?
Can I continue to tackle this issue and send PR?
Yes, sounds great.
I noticed that node-jsonfile's unit tests failed on Node.js 6.2.1. https://travis-ci.org/kuy/node-jsonfile/jobs/135610969