diff --git a/test/node/advanced.spec.js b/test/node/advanced.spec.js index ecb6232..58007a8 100644 --- a/test/node/advanced.spec.js +++ b/test/node/advanced.spec.js @@ -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 @@ -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');