fix: drop .js extensions from remaining relative imports
Some checks failed
CI / typecheck + lint + boundaries + test + build (push) Has been cancelled
CI / Playwright e2e (push) Has been cancelled
CI / Storybook smoke tests + visual regression (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Coverage snapshot / snapshot (push) Has been cancelled
Release Please / release-please (push) Has been cancelled
Sentry PII guard (R31) / pii-guard (push) Has been cancelled
Some checks failed
CI / typecheck + lint + boundaries + test + build (push) Has been cancelled
CI / Playwright e2e (push) Has been cancelled
CI / Storybook smoke tests + visual regression (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Coverage snapshot / snapshot (push) Has been cancelled
Release Please / release-please (push) Has been cancelled
Sentry PII guard (R31) / pii-guard (push) Has been cancelled
Extends 8111639 to cover __factories__, __seeds__, __contracts__, and
core-testing barrels.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { it, expect, beforeEach, describe } from "vitest";
|
||||
import { defineContractSuite } from "@repo/core-testing/contract";
|
||||
import type { IHeaderRepository } from "../application/repositories/header.repository.interface.js";
|
||||
import type { Header } from "../entities/models/header.js";
|
||||
import type { IHeaderRepository } from "../application/repositories/header.repository.interface";
|
||||
import type { Header } from "../entities/models/header";
|
||||
|
||||
/**
|
||||
* Known fixtures that every implementation's `buildSubject` must pre-seed.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineFactory } from "@repo/core-testing/factory";
|
||||
import type { Header } from "../entities/models/header.js";
|
||||
import type { Header } from "../entities/models/header";
|
||||
|
||||
export const headerFactory = defineFactory<Header>(({ sequence }) => ({
|
||||
logoId: `logo-${sequence}`,
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export { headerFactory } from "./header.factory.js";
|
||||
export { navItemFactory } from "./nav-item.factory.js";
|
||||
export { headerFactory } from "./header.factory";
|
||||
export { navItemFactory } from "./nav-item.factory";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineFactory } from "@repo/core-testing/factory";
|
||||
import type { HeaderItem } from "../entities/models/header.js";
|
||||
import type { HeaderItem } from "../entities/models/header";
|
||||
|
||||
export const navItemFactory = defineFactory<HeaderItem>(({ sequence }) => ({
|
||||
label: `Item ${sequence}`,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { headerFactory } from "../__factories__/header.factory.js";
|
||||
import { navItemFactory } from "../__factories__/nav-item.factory.js";
|
||||
import type { Header } from "../entities/models/header.js";
|
||||
import { headerFactory } from "../__factories__/header.factory";
|
||||
import { navItemFactory } from "../__factories__/nav-item.factory";
|
||||
import type { Header } from "../entities/models/header";
|
||||
|
||||
/**
|
||||
* Realistic navigation seed for dev mode + storybook stories.
|
||||
@@ -20,7 +20,11 @@ export function buildDevHeader(): Header {
|
||||
navItemFactory.build({ label: "Home", href: "/", external: false }),
|
||||
navItemFactory.build({ label: "Blog", href: "/blog", external: false }),
|
||||
navItemFactory.build({ label: "About", href: "/about", external: false }),
|
||||
navItemFactory.build({ label: "Pricing", href: "/pricing", external: false }),
|
||||
navItemFactory.build({
|
||||
label: "Pricing",
|
||||
href: "/pricing",
|
||||
external: false,
|
||||
}),
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user