- Pre-compile all regex patterns as module-level constants in parser.js and jsonRepair.js - Add format detection caching (lastDetectedFormat, formatCacheHits) to skip redundant checks - Add clearFormatCache() export for cache invalidation - Add comprehensive test suite (33 tests) for parser and jsonRepair modules - Fix regex escaping in dynamic patterns (statRegex, fieldRegex) - Improve toFieldKey() regex specificity
5 lines
97 B
JavaScript
5 lines
97 B
JavaScript
module.exports = {
|
|
testEnvironment: 'node',
|
|
testMatch: ['**/__tests__/**/*.test.js'],
|
|
};
|