Greenfield implementation of CardClaws Phase 1 across three surfaces. Backend (Rust/Axum workspace, 67 tests): - cardclaws-types/config/db/auth/api/wallet crates - Auth: register, login + lockout, magic link, refresh rotation, Apple verify - Cards: CRUD, tier-limited publish, duplicate, public handle lookup - Assets: R2 presigned uploads; vCard export - Apple Wallet .pkpass pipeline (PKCS#7 signer behind apple-signing feature) - Analytics ingest + summary with daily-salted IP hashing - Migrations 0001 (incl. cardclaws_sessions) + 0002 analytics Web profile (Astro SSR): cardclaws.com/[handle] hero + flip, contact actions, client-built vCard, visit attribution. Verified end-to-end. Mobile (Expo SDK 51): auth, card list/create, builder v1 (bg/text/logo, palette, undo/redo), Skia/Reanimated viewer (flip + ambient). 22 logic tests. CI: policy/backend/profile/mobile jobs; LOC + no-placeholder lint. Review fixes baked in: `back` (not `cardclaws`) key; strip image is a bundled manifest file (not a URL); sessions table added; NFC reframed; test doubles allowed for external services. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
17 lines
705 B
JavaScript
17 lines
705 B
JavaScript
// Two test surfaces:
|
|
// - Pure-logic unit suites (__tests__/unit) run under ts-jest with no React
|
|
// Native dependency, so they pass in CI without a simulator (PRD §15.2 logic
|
|
// suites: handle validation, colour quantiser, vCard, undo/redo store, QR).
|
|
// - Component suites (__tests__/component) would use the `jest-expo` preset and
|
|
// a simulator-class environment; they are authored but not part of the
|
|
// headless unit run.
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
testEnvironment: "node",
|
|
roots: ["<rootDir>/__tests__/unit", "<rootDir>/src"],
|
|
testMatch: ["**/__tests__/unit/**/*.test.ts"],
|
|
transform: {
|
|
"^.+\\.ts$": ["ts-jest", { tsconfig: "tsconfig.spec.json" }],
|
|
},
|
|
};
|