nomyo-js/jest.config.js
alpha-nerd-nomyo c7601b2270 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
2026-03-04 11:30:44 +01:00

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,
};