Skip to content

Commit 0ad81d0

Browse files
author
Kylie Stewart
committed
Increase timeout
1 parent 4fdd25a commit 0ad81d0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/node/advanced.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const PreactTestRenderer = require('@testing-library/preact');
1313
const equal = require('../..');
1414
const tests = require('./tests');
1515

16+
const TIMEOUT = '5000';
17+
1618
class ReactChild extends React.Component {
1719
shouldComponentUpdate(nextProps) {
1820
// this.props.children is a h1 with a circular reference to its owner, Container
@@ -59,6 +61,9 @@ describe('advanced', () => {
5961
let sandbox;
6062
let warnStub;
6163

64+
// eslint-disable-next-line no-invalid-this
65+
beforeEach(function () { this.timeout(TIMEOUT); });
66+
6267
beforeEach(() => {
6368
sandbox = sinon.createSandbox();
6469
warnStub = sandbox.stub(console, 'warn');

0 commit comments

Comments
 (0)