fix:
- 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
This commit is contained in:
parent
0b09b9a9c3
commit
c7601b2270
17 changed files with 12600 additions and 164 deletions
26
jest.config.js
Normal file
26
jest.config.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/** @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,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue