mirror of
https://github.com/home-assistant/frontend.git
synced 2026-07-02 12:05:39 +01:00
2c8d6c1a02
Adds Playwright end-to-end tests covering three targets: - the demo build - a new lightweight test app exercising several scenarios (theming, admin/non-admin sidebar, panel navigation, more-info dialog) - the component gallery Includes the gulp/rspack build infra for the test app and an "E2E Tests" GitHub Actions workflow that builds each target once, shares it via artifacts, and runs the suites on Chromium and mobile Chrome. Browser install is cached and retried to avoid intermittent download stalls. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
556 B
JavaScript
12 lines
556 B
JavaScript
// Browser-only replacement for core-js/internals/get-built-in-node-module.
|
|
// The original helper evaluates `Function('return require("...")')()`
|
|
// when it detects a Node environment, which causes a runtime
|
|
// ReferenceError on browsers (notably Safari 14) if environment
|
|
// detection mis-classifies the page. Since browser bundles never need to
|
|
// access Node built-in modules, return undefined unconditionally.
|
|
//
|
|
// Wired up via rspack `NormalModuleReplacementPlugin` in build-scripts/rspack.cjs.
|
|
module.exports = function () {
|
|
return undefined;
|
|
};
|