Skip to content

Commit

Permalink
fix browser perf test, add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 6, 2022
1 parent e9fd612 commit 9b8034b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/browser/index.js
@@ -1,3 +1,8 @@
// since we don't run the browser tests in an actual browser, we need to make `performance`
// globally accessible same as in the browser. this can be removed once `performance` is
// available globally in all supported platforms. [currently global for node.js v16+].
global.performance = require('perf_hooks').performance;

const { basename, resolve } = require('path');
const fixturify = require('fixturify');
const { rollup } = require('../../dist/rollup.browser.js');
Expand Down

0 comments on commit 9b8034b

Please sign in to comment.