- Updated python_coding_microproject.csv to use NVIDIA NIM Kimi K2 - Updated kali_linux_shell_simulator.csv to use NVIDIA NIM Kimi K2 - Made more general-purpose (flexible targets, expanded tools) - Added nemotron-mini-agent.csv for fast local inference via Ollama - Added nemotron-agent.csv for advanced reasoning via Ollama - Added wiki page: Projects for NVIDIA NIMs and Nemotron
21 lines
699 B
JavaScript
21 lines
699 B
JavaScript
"use strict";
|
|
/**
|
|
* Test setup for utility functions
|
|
*/
|
|
// Mock environment variables for testing
|
|
process.env.JWT_SECRET = 'test-jwt-secret-for-testing-only';
|
|
process.env.MASTER_ENCRYPTION_KEY = 'test-master-key-32-bytes-long-test';
|
|
// Mock crypto for consistent testing
|
|
jest.mock('crypto', () => {
|
|
const originalCrypto = jest.requireActual('crypto');
|
|
return {
|
|
...originalCrypto,
|
|
randomBytes: jest.fn().mockImplementation((size) => {
|
|
return Buffer.alloc(size, 'a'); // Return consistent fake random bytes
|
|
}),
|
|
randomInt: jest.fn().mockReturnValue(5), // Return consistent fake random int
|
|
};
|
|
});
|
|
// Global test timeout
|
|
jest.setTimeout(10000);
|