Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading