Skip to content

Commit

Permalink
chore: stop skipping detect open handles test (#12514)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 28, 2022
1 parent 1125f2f commit e20c671
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions e2e/__tests__/detectOpenHandles.ts
Expand Up @@ -7,19 +7,6 @@

import runJest, {runContinuous} from '../runJest';

try {
require('async_hooks');
} catch (e: any) {
if (e.code === 'MODULE_NOT_FOUND') {
// eslint-disable-next-line jest/no-focused-tests
fit('skip test for unsupported nodes', () => {
console.warn('Skipping test for node ' + process.version);
});
} else {
throw e;
}
}

function getTextAfterTest(stderr: string) {
return (stderr.split(/Ran all test suites(.*)\n/)[2] || '').trim();
}
Expand Down

0 comments on commit e20c671

Please sign in to comment.