Skip to content

Commit

Permalink
fix(cli): more timeout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jan 29, 2020
1 parent 24858d3 commit 57f9017
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .mocharc.js
Expand Up @@ -5,5 +5,7 @@ module.exports = {
'experimental-report': true,
'forbid-only': Boolean(process.env.CI),
'no-warnings': true,
timeout: 5000,
slow: 2000,
require: ['esm', require.resolve('./packages/common/test/setup.js')]
};
4 changes: 0 additions & 4 deletions packages/cli/test/e2e/common.spec.js
@@ -1,10 +1,6 @@
import {run} from './cli-helper.js';

describe('@report-toolkit/cli', function() {
beforeEach(function() {
this.timeout(5000);
});

describe('when run without parameters', function() {
it('should exit with code 1', function() {
return expect(run(), 'to be rejected with error satisfying', {
Expand Down
4 changes: 0 additions & 4 deletions packages/cli/test/e2e/diff.spec.js
Expand Up @@ -8,10 +8,6 @@ const REPORT_002_FILEPATH = require.resolve(
);

describe('@report-toolkit/cli:command:diff', function() {
beforeEach(function() {
this.timeout(5000);
});

describe('when run with a single report file', function() {
it('should exit with code 1', function() {
return expect(
Expand Down
4 changes: 0 additions & 4 deletions packages/cli/test/e2e/inspect.spec.js
Expand Up @@ -8,10 +8,6 @@ const REPORT_002_FILEPATH = require.resolve(
);

describe('@report-toolkit/cli:command:inspect', function() {
beforeEach(function() {
this.timeout(5000);
});

describe('when run without parameters', function() {
it('should exit with code 1', function() {
return expect(run('inspect'), 'to be rejected with error satisfying', {
Expand Down
4 changes: 0 additions & 4 deletions packages/cli/test/e2e/list-rules.spec.js
@@ -1,10 +1,6 @@
import {runAsCSV, runAsJSON} from './cli-helper.js';

describe('@report-toolkit/cli:command:list-rules', function() {
beforeEach(function() {
this.timeout(5000);
});

it('should list available rules', function() {
return expect(
runAsJSON('list-rules'),
Expand Down
4 changes: 0 additions & 4 deletions packages/cli/test/e2e/transform.spec.js
Expand Up @@ -8,10 +8,6 @@ const REPORT_005_FILEPATH = require.resolve(
);

describe('@report-toolkit/cli:command:transform', function() {
beforeEach(function() {
this.timeout(5000);
});

describe('when no file specified', function() {
it('should fail', function() {
return expect(run('transform'), 'to be rejected with error satisfying', {
Expand Down

0 comments on commit 57f9017

Please sign in to comment.