test(api): longer timeout for API tree-shaking tests (#5247)

This commit is contained in:
Marc Pichler 2024-12-10 10:11:45 +01:00 committed by GitHub
parent 9328790c54
commit 5387343986
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ import * as realFs from 'fs';
* Webpack doesn't run in node 8 because it requires BigInt. Since we are testing
* build tooling here, we can safely skip tooling we know can't run anyway.
*/
describe('tree-shaking', () => {
describe('tree-shaking', function () {
const allowedAPIs = ['ContextAPI', 'DiagAPI'];
const testAPIs = [
{
@ -50,7 +50,7 @@ describe('tree-shaking', () => {
const outputPath = path.join(__dirname, 'output');
const outputFilename = path.join(outputPath, 'bundle.js');
afterEach(() => {
afterEach(function () {
try {
mfs.unlinkSync(outputFilename);
} catch {
@ -122,6 +122,6 @@ describe('tree-shaking', () => {
allowedAPIs.forEach(it => matches.delete(it));
assert.deepStrictEqual(Array.from(matches), [testAPI.name]);
});
}).timeout(5000);
}
});