test(api): longer timeout for API tree-shaking tests (#5247)
This commit is contained in:
parent
9328790c54
commit
5387343986
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue