Skip to content

Commit 1a934b3

Browse files
committed
Minor fixes and Improvements:
- Created jest.config.cjs for Jest setup with ESM support and coverage reporting. - Added initial test suite for defaultFilterMeta to verify required fields and types. - Updated exports in cli-exports.ts to properly re-export types. - RuleDeduplicator modified to use Set for better performance in deduplication. - Configured package.json scripts for testing with Jest and publishing packages.
1 parent 1faac68 commit 1a934b3

File tree

12 files changed

+3138
-4759
lines changed

12 files changed

+3138
-4759
lines changed

.npmrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
registry=https://registry.npmjs.org/
1+
registry=https://registry.npmjs.org/
2+
# Do NOT store tokens in this file. Use an environment variable or CI secret instead.
3+
# Example (CI/local):
4+
# //registry.npmjs.org/:_authToken=${NPM_TOKEN}

jest

Whitespace-only changes.

jest.config.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
// Use the ESM-aware preset for ts-jest when the package uses ESM
3+
preset: 'ts-jest/presets/default-esm',
4+
testEnvironment: 'node',
5+
roots: ['<rootDir>/src'],
6+
testMatch: ['**/*.test.ts'],
7+
collectCoverage: true,
8+
coverageDirectory: 'coverage',
9+
coverageReporters: ['text', 'lcov'],
10+
extensionsToTreatAsEsm: ['.ts'],
11+
moduleNameMapper: {
12+
'^@/(.*)$': '<rootDir>/src/$1',
13+
},
14+
};

jest.config.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)