Skip to content

Commit

Permalink
chore(deps): bump rimraf from 2.6.2 to 5.0.10
Browse files Browse the repository at this point in the history
* chore(deps): bump rimraf

* chore(deps): remove unnecessary glob option

* chore(deps): replace rimraf with fs where applicable
  • Loading branch information
mrkans authored Jan 8, 2025
1 parent 5711e3d commit ff77394
Show file tree
Hide file tree
Showing 5 changed files with 466 additions and 16 deletions.
6 changes: 3 additions & 3 deletions __tests__/integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

const fs = require('fs');
const path = require('path');
const rimraf = require('rimraf');
const { rimrafSync } = require('rimraf');
const uniqueId = require('lodash/uniqueId');
const sizeOf = require('image-size');
const { SnapshotState } = require('jest-snapshot');
Expand All @@ -37,11 +37,11 @@ describe('toMatchImageSnapshot', () => {
});

beforeEach(() => {
rimraf.sync(`**/${cleanupRequiredIndicator}*`);
rimrafSync(`**/${cleanupRequiredIndicator}*`, { glob: true });
});

afterAll(() => {
rimraf.sync(`**/${cleanupRequiredIndicator}*`);
rimrafSync(`**/${cleanupRequiredIndicator}*`, { glob: true });
});

describe('happy path', () => {
Expand Down
3 changes: 1 addition & 2 deletions __tests__/outdated-snapshot-reporter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const fs = require('fs');
const os = require('os');
const childProcess = require('child_process');
const path = require('path');
const rimraf = require('rimraf');

describe('OutdatedSnapshotReporter', () => {
const jestImageSnapshotDir = path.join(__dirname, '..');
Expand Down Expand Up @@ -80,7 +79,7 @@ describe('OutdatedSnapshotReporter', () => {
});

afterAll(() => {
rimraf.sync(tmpDir);
fs.rmSync(tmpDir, { recursive: true, force: true });
});

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

0 comments on commit ff77394

Please sign in to comment.