From 68e5079281572fa6ff6c0c7172bf25c354333014 Mon Sep 17 00:00:00 2001 From: Kirill Shumilov Date: Wed, 23 Dec 2020 17:51:39 +0300 Subject: [PATCH] fixup! test(xod-client): add a test for the recovering process --- packages/xod-client-browser/test-func/bootstrap.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/xod-client-browser/test-func/bootstrap.js b/packages/xod-client-browser/test-func/bootstrap.js index 9c5f99ecb..02775f422 100644 --- a/packages/xod-client-browser/test-func/bootstrap.js +++ b/packages/xod-client-browser/test-func/bootstrap.js @@ -14,6 +14,8 @@ import { PORT } from './server.config'; const globalVariables = R.pick(['browser', 'assert'], global); +const now = Date.now(); + const startServer = () => new Promise((resolve, reject) => { const compiler = webpack(config); @@ -21,6 +23,8 @@ const startServer = () => // Replace the next line with `compiler.hooks.done.tap('onDone', ...` // after upgrading webpack to version >4 compiler.plugin('done', () => { + // eslint-disable-next-line no-console + console.log(Date.now() - now, 'Webpack compiled'); resolve(server); }); server.listen(PORT, 'localhost', err => { @@ -28,6 +32,8 @@ const startServer = () => console.error(err); // eslint-disable-line no-console reject(err); } + // eslint-disable-next-line no-console + console.log(Date.now() - now, 'Webpack dev server is running'); }); }); @@ -42,6 +48,8 @@ before(async () => { slowMo: 10, timeout: 10000, }); + // eslint-disable-next-line no-console + console.log(Date.now() - now, 'Puppeteer launched'); }); after(() => {