mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 06:36:49 +09:00
27 lines
590 B
TypeScript
27 lines
590 B
TypeScript
/**
|
|
* Test setup for MLE-STAR validation suite
|
|
*/
|
|
|
|
import '@tensorflow/tfjs-node';
|
|
import { logger } from '../../utils/logger';
|
|
|
|
// Global test configuration
|
|
beforeAll(async () => {
|
|
// Configure logger for testing
|
|
logger.level = 'error'; // Suppress info/debug logs during tests
|
|
|
|
// Global timeout for ML operations
|
|
jest.setTimeout(60000);
|
|
|
|
// Suppress TensorFlow warnings
|
|
console.warn = jest.fn();
|
|
});
|
|
|
|
afterAll(async () => {
|
|
// Global cleanup
|
|
const tf = require('@tensorflow/tfjs-node');
|
|
tf.disposeVariables();
|
|
|
|
// Restore console
|
|
jest.restoreAllMocks();
|
|
}); |