Skip to content

Commit

Permalink
tests(smoke): convert core tests to single-expectations format
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Jul 22, 2021
1 parent f946479 commit 4de7358
Show file tree
Hide file tree
Showing 23 changed files with 3,981 additions and 3,617 deletions.
4 changes: 1 addition & 3 deletions lighthouse-cli/test/smokehouse/frontends/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@
const cloneDeep = require('lodash.clonedeep');
const smokeTests = require('../test-definitions/core-tests.js');
const {runSmokehouse} = require('../smokehouse.js');
const {updateTestDefnFormat} = require('./back-compat-util.js');

/**
* @param {Smokehouse.SmokehouseLibOptions} options
*/
async function smokehouse(options) {
const {urlFilterRegex, skip, modify, ...smokehouseOptions} = options;

const updatedCoreTests = updateTestDefnFormat(smokeTests);
const clonedTests = cloneDeep(updatedCoreTests);
const clonedTests = cloneDeep(smokeTests);
const modifiedTests = [];
for (const test of clonedTests) {
if (urlFilterRegex && !test.expectations.lhr.requestedUrl.match(urlFilterRegex)) {
Expand Down
Loading

0 comments on commit 4de7358

Please sign in to comment.