Skip to content

Commit 4ae5961

Browse files
committed
🤖 fix: Update E2E test dist paths and Storybook CSS import
- Update REQUIRED_DIST_FILES in E2E tests to check for: - dist/cli/index.js (CLI entry point) - dist/desktop/main.js (Electron main process) - dist/preload.js (unchanged) - Fix Storybook preview CSS import: src/styles/globals.css → src/browser/styles/globals.css Fixes E2E test error: Missing build artifact at dist/main.js Fixes Storybook build error: Could not resolve ../src/styles/globals.css
1 parent ce6a501 commit 4ae5961

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Preview } from "@storybook/react-vite";
2-
import "../src/styles/globals.css";
2+
import "../src/browser/styles/globals.css";
33

44
const preview: Preview = {
55
decorators: [

tests/e2e/electronTest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ const shouldLoadDist = process.env.MUX_E2E_LOAD_DIST === "1";
2727

2828
const REQUIRED_DIST_FILES = [
2929
path.join(appRoot, "dist", "index.html"),
30-
path.join(appRoot, "dist", "main.js"),
30+
path.join(appRoot, "dist", "cli", "index.js"),
31+
path.join(appRoot, "dist", "desktop", "main.js"),
3132
path.join(appRoot, "dist", "preload.js"),
3233
] as const;
3334

0 commit comments

Comments
 (0)