fix(turbo): rely on graph build before e2e

This commit is contained in:
vince 2026-06-20 06:16:41 +02:00
parent ae6eabed6f
commit c8183bcc47
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,7 @@ export default defineConfig({
},
webServer: [
{
command: `DISABLE_LIVE_DATASOURCES=1 bun run build && DISABLE_LIVE_DATASOURCES=1 DATABASE_URL=${databaseUrl} HOST=127.0.0.1 PORT=${port} bun build/index.js`,
command: `DISABLE_LIVE_DATASOURCES=1 DATABASE_URL=${databaseUrl} HOST=127.0.0.1 PORT=${port} bun build/index.js`,
url: baseURL,
reuseExistingServer: false,
timeout: 120_000,

View file

@ -56,7 +56,7 @@ describe("workspace boundaries", () => {
);
});
test("lets turbo build Storybook before e2e serves the static artifact", () => {
test("lets turbo build app and Storybook artifacts before e2e serves them", () => {
const playwrightConfig = readFileSync(
join(root, "apps/web/playwright.config.ts"),
"utf8",
@ -67,6 +67,7 @@ describe("workspace boundaries", () => {
tasks?: Record<string, { dependsOn?: string[] }>;
};
expect(playwrightConfig).not.toContain("bun run build &&");
expect(playwrightConfig).not.toContain("bun run build-storybook");
expect(turboConfig.tasks?.["test:e2e"]?.dependsOn).toEqual(
expect.arrayContaining(["@dimensionlab/ui#build-storybook"]),