import { describe, it, expect } from 'vitest';
import * as workflows from '../workflows/dsl-workflow';

/**
 * Smoke test: confirm cronTriggerWorkflow is exported from dsl-workflow.ts so the
 * Temporal SDK auto-registers it via the workflowsPath setting in worker/src/index.ts.
 *
 * We don't run a TestWorkflowEnvironment here — that requires booting a real Temporal
 * Server. The actual schedule registration + workflow execution paths are covered by
 * the server-side TemporalService unit tests.
 */
describe('cronTriggerWorkflow export', () => {
  it('is exported as a function', () => {
    expect(typeof workflows.cronTriggerWorkflow).toBe('function');
  });

  it('dslWorkflow is also still exported', () => {
    expect(typeof workflows.dslWorkflow).toBe('function');
  });
});
