Skip to content

Commit

Permalink
Correct test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilwanner committed May 17, 2020
1 parent 0f3bd92 commit e844c69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions packages/mozjpeg/__tests__/performance.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { initTestUtils, getRawImage, getFileSize, getImageMetadata, cleanup } from '@wasm-codecs/test-utils';
import { initTestUtils, getRawImage, getFileSize, getImageMetadata } from '@wasm-codecs/test-utils';
import encode from '../lib';

describe('mozjpeg performance', () => {
beforeAll(() => {
initTestUtils(__dirname);
});

afterAll(cleanup);

it('encodes many images', async () => {
jest.setTimeout(60000);
process.setMaxListeners(0);
Expand Down
2 changes: 1 addition & 1 deletion packages/oxipng/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('oxipng', () => {
initTestUtils(__dirname);
});

// afterAll(cleanup);
afterAll(cleanup);

// test all image sizes
['tiny', 'small', 'medium', 'large'].forEach((size) => {
Expand Down
4 changes: 1 addition & 3 deletions packages/oxipng/__tests__/performance.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { initTestUtils, getFileSize, getImageMetadata, cleanup, getImage } from '@wasm-codecs/test-utils';
import { initTestUtils, getFileSize, getImageMetadata, getImage } from '@wasm-codecs/test-utils';
import encode from '../lib';

describe('oxipng performance', () => {
beforeAll(() => {
initTestUtils(__dirname);
});

// afterAll(cleanup);

it('encodes many images', async () => {
jest.setTimeout(60000);
process.setMaxListeners(0);
Expand Down

0 comments on commit e844c69

Please sign in to comment.