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
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
testEnvironment: 'node',
snapshotResolver: './test/helpers/snapshotResolver.js',
setupFilesAfterEnv: ['<rootDir>/setupTest.js'],
};
1 change: 1 addition & 0 deletions setupTest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jest.setTimeout(120000);
2 changes: 0 additions & 2 deletions test/CssMinimizerPlugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import {
normalizedSourceMap,
} from './helpers';

jest.setTimeout(30000);

describe('CssMinimizerPlugin', () => {
const rawSourceMap = {
version: 3,
Expand Down
2 changes: 0 additions & 2 deletions test/cache-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ const otherOtherOtherCacheDir = findCacheDir({
name: 'other-other-other-cache-directory',
});

jest.setTimeout(30000);

if (getCompiler.isWebpack4()) {
describe('cache option', () => {
let compiler;
Expand Down
2 changes: 0 additions & 2 deletions test/cssMinimizerOptions-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import CssMinimizerPlugin from '../src/index';

import { getCompiler, compile, readAsset, removeCache } from './helpers';

jest.setTimeout(30000);

describe('when applied with "minimizerOptions" option', () => {
beforeEach(() => Promise.all([removeCache()]));

Expand Down
2 changes: 0 additions & 2 deletions test/parallel-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jest.mock('jest-worker', () => {

const workerPath = require.resolve('../src/minify');

jest.setTimeout(30000);

describe('parallel option', () => {
let compiler;

Expand Down
2 changes: 0 additions & 2 deletions test/sourceMap-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import {
getWarnings,
} from './helpers';

jest.setTimeout(30000);

describe('when applied with "sourceMap" option', () => {
const baseConfig = {
devtool: 'source-map',
Expand Down
2 changes: 0 additions & 2 deletions test/test-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import CssMinimizerPlugin from '../src/index';

import { getCompiler, compile, readAsset, removeCache } from './helpers';

jest.setTimeout(30000);

describe('when applied with "test" option', () => {
let compiler;

Expand Down