- AES GCM protocol mismatch - better, granular error handling - UUID now uses crypto.randomUUID() - added native mlock addon to improve security - ZeroBuffer uses explicit_bzero now - fixed imports feat: - added unit tests
26 lines
894 B
JavaScript
26 lines
894 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
testMatch: ['**/tests/unit/**/*.test.ts', '**/tests/integration/**/*.test.ts'],
|
|
transform: {
|
|
'^.+\\.tsx?$': ['ts-jest', {
|
|
tsconfig: {
|
|
// Reuse main tsconfig but include tests and relax for test env
|
|
target: 'ES2020',
|
|
module: 'commonjs',
|
|
lib: ['ES2020', 'DOM'],
|
|
strict: true,
|
|
esModuleInterop: true,
|
|
skipLibCheck: true,
|
|
moduleResolution: 'node',
|
|
resolveJsonModule: true,
|
|
allowSyntheticDefaultImports: true,
|
|
// Relax unused-var rules in tests
|
|
noUnusedLocals: false,
|
|
noUnusedParameters: false,
|
|
},
|
|
}],
|
|
},
|
|
testTimeout: 60000,
|
|
};
|