Skip to content

Commit

Permalink
test(api): longer timeout for API tree-shaking tests (#5247)
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc authored Dec 10, 2024
1 parent 9328790 commit 5387343
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/test/tree-shaking/tree-shaking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand All @@ -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 {
Expand Down Expand Up @@ -122,6 +122,6 @@ describe('tree-shaking', () => {
allowedAPIs.forEach(it => matches.delete(it));

assert.deepStrictEqual(Array.from(matches), [testAPI.name]);
});
}).timeout(5000);
}
});

0 comments on commit 5387343

Please sign in to comment.