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 885f51e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/browser/index.js
@@ -1,4 +1,11 @@
const { basename, resolve } = require('path');
const { performance } = require('perf_hooks');

// 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 = performance;

const fixturify = require('fixturify');
const { rollup } = require('../../dist/rollup.browser.js');
const { assertFilesAreEqual, runTestSuiteWithSamples, compareError } = require('../utils.js');
Expand Down

0 comments on commit 885f51e

Please sign in to comment.