build(turbo): normalize workspace task graph #33
2 changed files with 3 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
webServer: [
|
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,
|
url: baseURL,
|
||||||
reuseExistingServer: false,
|
reuseExistingServer: false,
|
||||||
timeout: 120_000,
|
timeout: 120_000,
|
||||||
|
|
|
||||||
|
|
@ -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(
|
const playwrightConfig = readFileSync(
|
||||||
join(root, "apps/web/playwright.config.ts"),
|
join(root, "apps/web/playwright.config.ts"),
|
||||||
"utf8",
|
"utf8",
|
||||||
|
|
@ -67,6 +67,7 @@ describe("workspace boundaries", () => {
|
||||||
tasks?: Record<string, { dependsOn?: string[] }>;
|
tasks?: Record<string, { dependsOn?: string[] }>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
expect(playwrightConfig).not.toContain("bun run build &&");
|
||||||
expect(playwrightConfig).not.toContain("bun run build-storybook");
|
expect(playwrightConfig).not.toContain("bun run build-storybook");
|
||||||
expect(turboConfig.tasks?.["test:e2e"]?.dependsOn).toEqual(
|
expect(turboConfig.tasks?.["test:e2e"]?.dependsOn).toEqual(
|
||||||
expect.arrayContaining(["@dimensionlab/ui#build-storybook"]),
|
expect.arrayContaining(["@dimensionlab/ui#build-storybook"]),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue