- property-card.tsx: add ward between address and district in both
card (line 189) and list (line 95) layouts
- transfer-listing-card.tsx: conditionally prepend ward to
district/city when ward is non-null
- property-card.spec.tsx: update address test to assert ward is shown,
add list-layout ward regression test (21/21 pass)
Standard format: {address}, {ward}, {district}, {city}
Compact (project-card, industrial-listing-card): district/city only —
intentional; ProjectSummary has no ward field.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import path from 'path';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['src/**/*.spec.ts'],
|
|
exclude: ['src/**/*.integration.spec.ts', 'node_modules'],
|
|
env: {
|
|
BCRYPT_ROUNDS: '4',
|
|
},
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'text-summary', 'html', 'lcov', 'json-summary'],
|
|
reportsDirectory: './coverage',
|
|
include: ['src/**/*.ts'],
|
|
exclude: [
|
|
'src/**/*.spec.ts',
|
|
'src/**/*.integration.spec.ts',
|
|
'src/**/__tests__/**',
|
|
'src/**/*.module.ts',
|
|
'src/**/*.dto.ts',
|
|
'src/**/index.ts',
|
|
'src/main.ts',
|
|
],
|
|
// GOO-134: CI gate thresholds. Branches starts at 58 (no-regression ratchet)
|
|
// and will be raised to 60 via follow-up GOO-180 (payments/sbv-compliance,
|
|
// subscriptions/quotas, auth/guards). CTO approval: 8f2b125a.
|
|
thresholds: {
|
|
statements: 70,
|
|
lines: 70,
|
|
functions: 70,
|
|
branches: 58,
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@modules': path.resolve(__dirname, 'src/modules'),
|
|
},
|
|
},
|
|
});
|