mirror of
https://github.com/luxfhe/v1-sdk.git
synced 2026-10-30 17:07:22 +00:00
40 lines
793 B
JavaScript
40 lines
793 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
transform: {
|
|
'^.+\\.ts$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: 'tsconfig.json',
|
|
},
|
|
],
|
|
'^.+\\.js$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: 'tsconfig.json',
|
|
},
|
|
],
|
|
'^.+\\.bin$': ['<rootDir>config/rawLoader.cjs'],
|
|
},
|
|
testEnvironment: 'node',
|
|
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'!src/test/*',
|
|
'!src/**/*.d.ts',
|
|
'!src/kms/*',
|
|
'!src/init.ts',
|
|
'!src/node.ts',
|
|
'!src/web.ts',
|
|
],
|
|
coverageReporters: ['lcov', 'text-summary', 'json'],
|
|
transformIgnorePatterns: ['/node_modules/'],
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 45,
|
|
functions: 58,
|
|
lines: 60,
|
|
},
|
|
},
|
|
testRegex: '\\.test\\.ts$',
|
|
};
|