All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 2m46s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 37s
Deploy to Staging / Verify Staging (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
- Create ExpirationBadge component with 30-day warning and expired states - Create DocumentCardMetadata component for type-specific field display - Update DocumentsPage to show metadata and expiration badges on cards - Update DocumentsMobileScreen with metadata and badges (mobile variant) - Redesign DocumentDetailPage with side-by-side layout (desktop) and stacked layout (mobile) showing full metadata panel - Add 33 unit tests for new components - Fix jest.config.ts testMatch pattern for test discovery 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
994 B
TypeScript
40 lines
994 B
TypeScript
/**
|
|
* Jest configuration for MotoVaultPro frontend (React + TS, ESM)
|
|
*/
|
|
import type { Config } from 'jest';
|
|
|
|
const tsJestTransformCfg = {
|
|
tsconfig: 'tsconfig.json',
|
|
useESM: true,
|
|
};
|
|
|
|
const config: Config = {
|
|
testEnvironment: 'jsdom',
|
|
roots: ['<rootDir>/src'],
|
|
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': ['ts-jest', tsJestTransformCfg],
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'\\.(css|less|scss|sass)$': '<rootDir>/test/__mocks__/styleMock.js',
|
|
'\\.(svg|png|jpg|jpeg|gif)$': '<rootDir>/test/__mocks__/fileMock.js',
|
|
},
|
|
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
|
|
testMatch: ['**/*.test.ts', '**/*.test.tsx'],
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
|
|
reporters: [
|
|
'default',
|
|
[
|
|
'tdd-guard-jest',
|
|
{
|
|
projectRoot: '/home/egullickson/motovaultpro',
|
|
},
|
|
],
|
|
],
|
|
};
|
|
|
|
export default config;
|
|
|