refactor: js output

This commit is contained in:
Tiara Rodney 2026-03-15 05:11:59 +01:00
parent 1aa28c2a34
commit c6704c3a04
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
96 changed files with 3816 additions and 147 deletions

View file

@ -5,9 +5,9 @@ import {
typeToBugzilla,
issueToBugzillaCreate,
resolveProductComponent,
} from "../../../lib/bugzilla/fieldmap"
import type { Issue } from "../../../lib/issue"
import type { BugzillaTracker } from "../../../lib/tracker"
} from "../../../src/bugzilla/fieldmap.js"
import type { Issue } from "../../../src/issue.js"
import type { BugzillaTracker } from "../../../src/tracker.js"
describe("status mapping", () => {
it("maps TODO statuses to Bugzilla", () => {

View file

@ -2,7 +2,7 @@ import { describe, it, expect } from "vitest"
import {
normalizeRemoteUrl,
buildOriginUrl,
} from "../../../lib/bugzilla/origin"
} from "../../../src/bugzilla/origin.js"
describe("normalizeRemoteUrl", () => {
it("passes HTTPS URLs through", () => {

View file

@ -1,5 +1,5 @@
import { describe, it, expect } from "vitest"
import { CLICommand } from "../../lib/cli/CLICommand"
import { CLICommand } from "../../src/cli/CLICommand.js"
class TestLeafCommand extends CLICommand {
readonly name = "leaf"

View file

@ -1,6 +1,6 @@
import * as fs from "fs"
import { describe, it, expect } from "vitest"
import { preprocessTODO, parseTodoFile } from "../../lib/file"
import { preprocessTODO, parseTodoFile } from "../../src/file.js"
describe("parseTodoFile", () => {

View file

@ -1,6 +1,6 @@
import { describe, it, expect } from "vitest"
import * as fs from "fs"
import { parseIssue, validateStatusTransition } from "../../lib/issue"
import { parseIssue, validateStatusTransition } from "../../src/issue.js"
describe("parseIssue", () => {
it("parses all required fields", () => {

View file

@ -1,12 +1,12 @@
import * as fs from "fs"
import { describe, it, expect } from "vitest"
import { parseTodoFile } from "../../lib/file"
import { parseTodoFile } from "../../src/file.js"
import {
serializeTodoFile,
serializeIssue,
serializeSprints,
serializeRelationships,
} from "../../lib/serializer"
} from "../../src/serializer.js"
describe("serializeRelationships", () => {
it("serializes empty relationships", () => {

View file

@ -1,6 +1,6 @@
import * as fs from "fs"
import { describe, it, expect } from "vitest"
import { parseSprints } from "../../lib/sprint"
import { parseSprints } from "../../src/sprint.js"
describe("parseSprints", () => {
it("parses compact and expanded sprint entries", () => {

View file

@ -1,8 +1,8 @@
import * as fs from "fs"
import { describe, it, expect } from "vitest"
import { parseModules, parseBugzillaTracker } from "../../lib/tracker"
import { parseTodoFile } from "../../lib/file"
import { serializeTodoFile, serializeModules, serializeBugzillaTracker } from "../../lib/serializer"
import { parseModules, parseBugzillaTracker } from "../../src/tracker.js"
import { parseTodoFile } from "../../src/file.js"
import { serializeTodoFile, serializeModules, serializeBugzillaTracker } from "../../src/serializer.js"
describe("parseModules", () => {
it("parses modules list", () => {