lighthouse
Version:
Automated auditing, performance metrics, and best practices for the web.
16 lines (12 loc) • 356 B
JavaScript
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import process from 'process';
// NODE_ENV is set to test by mocha-setup.js and the smokehouse CLI runner
// CI as a catchall for everything we do in GitHub Actions
const isUnderTest = !!process.env.CI || process.env.NODE_ENV === 'test';
export {
isUnderTest,
};