initial commit

This commit is contained in:
Siwat Sirichai 2025-08-18 22:22:04 +07:00
commit 619cb97fa3
23 changed files with 9242 additions and 0 deletions

23
jest.config.js Normal file
View file

@ -0,0 +1,23 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src', '<rootDir>/tests'],
testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/index.ts',
'!**/node_modules/**',
'!**/examples/**',
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
setupFilesAfterEnv: ['<rootDir>/tests/setup.ts'],
testTimeout: 30000,
verbose: true,
clearMocks: true,
restoreMocks: true,
};