diff --git a/api/test/tree-shaking/tree-shaking.test.ts b/api/test/tree-shaking/tree-shaking.test.ts index 352f6627f1..7673eb87be 100644 --- a/api/test/tree-shaking/tree-shaking.test.ts +++ b/api/test/tree-shaking/tree-shaking.test.ts @@ -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); } });