refactor(model): extract dashboard model package
This commit is contained in:
parent
22f50d64f9
commit
7a6ad8ab0e
35 changed files with 164 additions and 57 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { readFileSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { type DashboardDocument } from "$lib/model";
|
||||
import { dimensionLabDashboardFixture } from "$lib/model/fixtures/dimensionlab";
|
||||
import { genericDashboardFixture } from "$lib/model/fixtures/generic";
|
||||
import { type DashboardDocument } from "@dimensionlab/dashboard-model";
|
||||
import { dimensionLabDashboardFixture } from "$lib/dashboard-seed/dimensionlab";
|
||||
import { genericDashboardFixture } from "@dimensionlab/dashboard-model/fixtures";
|
||||
import { dashboardDocumentToUiDashboard } from "./model-renderer";
|
||||
|
||||
const appRoot = process.cwd().endsWith(`${join("apps", "web")}`)
|
||||
|
|
@ -93,6 +93,7 @@ describe("dashboard model renderer", () => {
|
|||
"utf8",
|
||||
)
|
||||
.toLowerCase()
|
||||
.replaceAll("@dimensionlab/dashboard-model", "@internal/dashboard-model")
|
||||
.replaceAll("@dimensionlab/ui", "@internal/ui");
|
||||
|
||||
expect(source).not.toContain("dimension");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue