Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview This is a fake audit used exclusively in smoke tests to force inclusion of IFrameElements artifact.
|
|
* It is included here for complex reasons in the way the bundled smoketests work.
|
|
*
|
|
* The smokehouse configs are evaluated first in the node CLI side (which requires an absolute path using LH_ROOT).
|
|
* The smokehouse configs are then *re-evaluated* in the bundled context for execution by Lighthouse (which *cannot* use an absolute path using LH_ROOT).
|
|
*
|
|
* This mismatch in environment demands that the audit path in the config must be context-aware,
|
|
* yet the require-graph for the config is included before even the CLI knows that it will be using
|
|
* a bundled runner. Rather than force a massive smoketest architecture change, we include a harmless,
|
|
* test-only audit in our core list instead.
|
|
*/
|
|
|
|
export default {
|
|
meta: {
|
|
id: 'oopif-iframe-test-audit',
|
|
title: 'IFrame Elements',
|
|
failureTitle: 'IFrame Elements',
|
|
description: 'Audit to force the inclusion of IFrameElements artifact',
|
|
requiredArtifacts: ['IFrameElements'],
|
|
},
|
|
audit: () => ({score: 1}),
|
|
};
|