Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@
* An id the table does not know resolves to the wildcard baseline 0.5 — the documented
* neutral for "no evidence", never a quality claim.
*/
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { describe, it, expect } from "vitest";
import lifecycleData from "../../../../config/quality/model-lifecycle.json";
import { getStaticFitnessTableScore } from "../taskFitness";
import { REGISTRY } from "../../../config/providers/index.ts";

const TASK_TYPES = ["coding", "review", "planning", "analysis", "debugging", "documentation"];

const lifecycle = JSON.parse(
readFileSync(
fileURLToPath(new URL("../../../../config/quality/model-lifecycle.json", import.meta.url)),
"utf8"
)
) as { retired: Record<string, { status: string }> };
// Import data through the runner instead of letting Vite rewrite new URL(...)
// as a browser asset URL in the jsdom lane.
const lifecycle = lifecycleData as { retired: Record<string, { status: string }> };

const retiredIds = new Set(
Object.entries(lifecycle.retired)
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/dashboard/ComboSortSelect.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "../../_setup/jsdomGlobal.ts";
import { describe, it } from "node:test";
import { describe, it } from "vitest";
import assert from "node:assert/strict";
import { render, screen, fireEvent } from "@testing-library/react";
import { ComboSortSelect } from "@/app/(dashboard)/dashboard/combos/ComboSortSelect";
Expand Down
Loading