Skip to content

Commit ff77394

Browse files
authored
chore(deps): bump rimraf from 2.6.2 to 5.0.10
* chore(deps): bump rimraf * chore(deps): remove unnecessary glob option * chore(deps): replace rimraf with fs where applicable
1 parent 5711e3d commit ff77394

5 files changed

+466
-16
lines changed

__tests__/integration.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
const fs = require('fs');
1616
const path = require('path');
17-
const rimraf = require('rimraf');
17+
const { rimrafSync } = require('rimraf');
1818
const uniqueId = require('lodash/uniqueId');
1919
const sizeOf = require('image-size');
2020
const { SnapshotState } = require('jest-snapshot');
@@ -37,11 +37,11 @@ describe('toMatchImageSnapshot', () => {
3737
});
3838

3939
beforeEach(() => {
40-
rimraf.sync(`**/${cleanupRequiredIndicator}*`);
40+
rimrafSync(`**/${cleanupRequiredIndicator}*`, { glob: true });
4141
});
4242

4343
afterAll(() => {
44-
rimraf.sync(`**/${cleanupRequiredIndicator}*`);
44+
rimrafSync(`**/${cleanupRequiredIndicator}*`, { glob: true });
4545
});
4646

4747
describe('happy path', () => {

__tests__/outdated-snapshot-reporter.spec.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const fs = require('fs');
1616
const os = require('os');
1717
const childProcess = require('child_process');
1818
const path = require('path');
19-
const rimraf = require('rimraf');
2019

2120
describe('OutdatedSnapshotReporter', () => {
2221
const jestImageSnapshotDir = path.join(__dirname, '..');
@@ -80,7 +79,7 @@ describe('OutdatedSnapshotReporter', () => {
8079
});
8180

8281
afterAll(() => {
83-
rimraf.sync(tmpDir);
82+
fs.rmSync(tmpDir, { recursive: true, force: true });
8483
});
8584

8685
it('should write the image snapshot on first run', () => {

0 commit comments

Comments
 (0)