working companion prototype

This commit is contained in:
2025-11-24 23:32:36 +01:00
parent e7978024d7
commit e2bea9a126
175 changed files with 23227 additions and 3519 deletions

View File

@@ -52,13 +52,13 @@ describe('AutomationConfig', () => {
expect(mode).toBe('test');
});
it('should return production mode when NODE_ENV=development', () => {
it('should return development mode when NODE_ENV=development', () => {
process.env.NODE_ENV = 'development';
delete process.env.AUTOMATION_MODE;
const mode = getAutomationMode();
expect(mode).toBe('production');
expect(mode).toBe('development');
});
});
@@ -128,7 +128,7 @@ describe('AutomationConfig', () => {
const config = loadAutomationConfig();
expect(config.nutJs?.windowTitle).toBe('iRacing');
expect(config.nutJs?.templatePath).toBe('./resources/templates');
expect(config.nutJs?.templatePath).toBe('./resources/templates/iracing');
expect(config.nutJs?.confidence).toBe(0.9);
});