mirror of
https://github.com/kucherenko/jscpd.git
synced 2026-09-19 08:11:03 +08:00
64e471e2b0
Adds 92 new tests (178 → 270 total) with zero source-file modifications: - packages/finder: 13 new test files covering all reporters, subscribers, validators, hooks, utils, options, cloneFound, getFilesToDetect, and InFilesDetector; shared buildClone() factory helper - apps/jscpd: 3 new test files (options-unit, print, store) plus extensions to formats, modes, and options integration tests - vitest.config.ts added to both packages to restrict coverage.include to src/** only, eliminating bin/ and prism.js noise - Fixes 3 tokenizer bugs (trailing space in format lookup, tokenization edge cases) uncovered by the new format fixture suite - Adds fixture files for 40+ language formats to support formats.test.ts
52 lines
982 B
Plaintext
52 lines
982 B
Plaintext
{
|
|
// Application configuration - JSON5 format with comments
|
|
name: "my-application",
|
|
version: "2.1.0",
|
|
description: "A sample application configuration",
|
|
|
|
server: {
|
|
host: "0.0.0.0",
|
|
port: 3000,
|
|
ssl: false,
|
|
timeout: 30000, // milliseconds
|
|
|
|
// Database connection settings
|
|
database: {
|
|
host: "db.example.com",
|
|
port: 5432,
|
|
name: "appdb",
|
|
poolMin: 2,
|
|
poolMax: 20,
|
|
idleTimeout: 10000,
|
|
connectionTimeout: 5000,
|
|
},
|
|
|
|
// Redis cache settings
|
|
cache: {
|
|
host: "cache.example.com",
|
|
port: 6379,
|
|
ttl: 3600, // 1 hour
|
|
maxMemory: "512mb",
|
|
},
|
|
},
|
|
|
|
auth: {
|
|
jwtSecret: "change-me-in-production",
|
|
jwtExpiry: "7d",
|
|
refreshExpiry: "30d",
|
|
bcryptRounds: 12,
|
|
},
|
|
|
|
// Feature flags
|
|
features: {
|
|
darkMode: true,
|
|
betaFeatures: false,
|
|
analytics: true,
|
|
rateLimit: {
|
|
enabled: true,
|
|
maxRequests: 100,
|
|
windowMs: 60000, // 1 minute
|
|
},
|
|
},
|
|
}
|