feat(automation): add OS-level screen automation foundation services

This commit is contained in:
2025-11-22 14:09:39 +01:00
parent 81b2fd3cd3
commit 265b070606
10 changed files with 2031 additions and 9 deletions

View File

@@ -16,12 +16,12 @@ describe('AutomationConfig', () => {
describe('loadAutomationConfig', () => {
describe('default configuration', () => {
it('should return dev mode when AUTOMATION_MODE is not set', () => {
it('should return production mode when AUTOMATION_MODE is not set', () => {
delete process.env.AUTOMATION_MODE;
const config = loadAutomationConfig();
expect(config.mode).toBe('dev');
expect(config.mode).toBe('production');
});
it('should return default devTools configuration', () => {
@@ -161,12 +161,12 @@ describe('AutomationConfig', () => {
expect(config.nutJs?.confidence).toBe(0.9);
});
it('should fallback to dev mode for invalid AUTOMATION_MODE', () => {
it('should fallback to production mode for invalid AUTOMATION_MODE', () => {
process.env.AUTOMATION_MODE = 'invalid-mode';
const config = loadAutomationConfig();
expect(config.mode).toBe('dev');
expect(config.mode).toBe('production');
});
});