mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(ci): split unit/integration tests and fix landing test failures
- Separate unit tests (fast, no system deps) from integration test shards to prevent vi.mock db leakage across test types - Fix hero test: update expected subtitle to match current copy - Fix FAQ test: add missing json-ld alias in vitest config and mock - Integration tests run in 4 parallel shards (30min timeout each)
This commit is contained in:
@@ -41,7 +41,7 @@ describe("Hero", () => {
|
||||
|
||||
it("renders the subheadline", () => {
|
||||
render(<Hero />);
|
||||
expect(screen.getByText("Every image tool you need.")).toBeDefined();
|
||||
expect(screen.getByText(/free, open-source image toolkit/)).toBeDefined();
|
||||
});
|
||||
|
||||
it("renders the CTA button linking to GitHub", () => {
|
||||
|
||||
@@ -19,6 +19,10 @@ vi.mock("@/components/navbar", () => ({
|
||||
Navbar: () => <nav data-testid="navbar" />,
|
||||
}));
|
||||
|
||||
vi.mock("@/components/json-ld", () => ({
|
||||
JsonLd: () => null,
|
||||
}));
|
||||
|
||||
vi.mock("framer-motion", () => ({
|
||||
motion: {
|
||||
div: ({ children, ...props }: React.PropsWithChildren<Record<string, unknown>>) => (
|
||||
|
||||
Reference in New Issue
Block a user