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 bbb5681
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/browser/index.js
@@ -1,4 +1,10 @@
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 `perforomance`
// globally accessible same as in the browser (this can be removed once available globally in all supported platforms)
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 bbb5681

Please sign in to comment.