diff --git a/test/scripts/box/file.ts b/test/scripts/box/file.ts index edb485d812..3e3f65b5c4 100644 --- a/test/scripts/box/file.ts +++ b/test/scripts/box/file.ts @@ -38,7 +38,10 @@ describe('File', () => { params: {foo: 'bar'} }); - before(async () => { + // NOTE: Do not use `arrow function` here. + // See https://mochajs.org/#arrow-functions + before(async function() { + this.timeout(20000); await Promise.all([ writeFile(file.source, body), hexo.init()