5610ef9f1a
CI Build & Deploy Pipeline / Staging E2E Tests (push) Failing after 1m21s
CI Build & Deploy Pipeline / Production Browser E2E (push) Failing after 1420h12m40s
CI Build & Deploy Pipeline / Build Production API Image (push) Failing after 1420h12m44s
CI Build & Deploy Pipeline / Deploy Production (push) Failing after 1420h12m42s
CI Build & Deploy Pipeline / Build Production Worker Image (push) Failing after 1420h12m44s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1420h12m54s
CI Build & Deploy Pipeline / Build Staging API Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (push) Failing after 1420h44m49s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Has been skipped
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
25 lines
622 B
TypeScript
25 lines
622 B
TypeScript
import { describe, expect, it, vi } from "vitest"
|
|
import { render } from "@testing-library/react"
|
|
import { MemoryRouter } from "react-router-dom"
|
|
|
|
vi.mock("@/components/layout/PageHead", () => ({
|
|
default: ({ title }: { title: string; description?: string }) => (
|
|
<div data-testid="page-head">
|
|
<h1>{title}</h1>
|
|
</div>
|
|
),
|
|
}))
|
|
|
|
import Accounts from "@/pages/accounts/Accounts"
|
|
|
|
describe("Accounts Page", () => {
|
|
it("should render without crashing", () => {
|
|
const { container } = render(
|
|
<MemoryRouter>
|
|
<Accounts />
|
|
</MemoryRouter>,
|
|
)
|
|
expect(container).toBeTruthy()
|
|
})
|
|
})
|