Skip to content

Commit

Permalink
tests: use brfs when bundling smokehouse (#10727)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored May 7, 2020
1 parent 688873f commit b36b694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/build-smokehouse-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const smokehouseLibFilename = './lighthouse-cli/test/smokehouse/frontends/lib.js

browserify(smokehouseLibFilename, {standalone: 'Lighthouse.Smokehouse'})
.ignore('./lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js')
.transform('@wardpeet/brfs', {global: true, parserOpts: {ecmaVersion: 10}})
.bundle((err, src) => {
if (err) throw err;
fs.writeFileSync(bundleOutFile, src.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

const fs = require('fs');

const mapPath = require.resolve('../../../fixtures/source-map/script.js.map');
const mapJson = fs.readFileSync(mapPath, 'utf-8');
const mapJson =
fs.readFileSync(`${__dirname}/../../../fixtures/source-map/script.js.map`, 'utf-8');
const map = JSON.parse(mapJson);

/**
Expand Down

0 comments on commit b36b694

Please sign in to comment.