chore: update package version to 1.2.5 and add Jest testing framework
- Bump version in package.json and package-lock.json from 1.2.2 to 1.2.5 - Add Jest configuration file for testing - Update build scripts to use npm instead of bun - Add linting and testing scripts to package.json - Include tsconfig files in package.json files array
This commit is contained in:
parent
180249be26
commit
ad1424a79a
6 changed files with 54 additions and 638 deletions
20
jest.config.js
Normal file
20
jest.config.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
roots: ['<rootDir>/src'],
|
||||
testMatch: [
|
||||
'**/__tests__/**/*.ts',
|
||||
'**/?(*.)+(spec|test).ts'
|
||||
],
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest',
|
||||
},
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.ts',
|
||||
'!src/index.ts'
|
||||
],
|
||||
coverageDirectory: 'coverage',
|
||||
coverageReporters: ['text', 'lcov', 'html'],
|
||||
testTimeout: 30000,
|
||||
passWithNoTests: true
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue