Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kale-stew committed May 8, 2020
1 parent 4fdd25a commit 0ad81d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/node/advanced.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const PreactTestRenderer = require('@testing-library/preact');
const equal = require('../..');
const tests = require('./tests');

const TIMEOUT = '5000';

class ReactChild extends React.Component {
shouldComponentUpdate(nextProps) {
// this.props.children is a h1 with a circular reference to its owner, Container
Expand Down Expand Up @@ -59,6 +61,9 @@ describe('advanced', () => {
let sandbox;
let warnStub;

// eslint-disable-next-line no-invalid-this
beforeEach(function () { this.timeout(TIMEOUT); });

beforeEach(() => {
sandbox = sinon.createSandbox();
warnStub = sandbox.stub(console, 'warn');
Expand Down

0 comments on commit 0ad81d0

Please sign in to comment.