Files
Memoh/vitest.config.ts
Acbox defddc2257 feat(web): structured schedule create/edit UI
Replace the read-only schedule list with a form-driven builder so users
never hand-edit cron patterns. A canonical ScheduleFormState feeds two
inverse pure functions (toCron / fromCron) that guarantee round-trip
equivalence, so new and edit flows share the exact same UI state shape
even though the DB stores only the pattern. Unrecognised patterns (AI-
generated ranges/steps, descriptors, 6-field seconds cron) fall back
losslessly to an advanced mode instead of being silently rewritten.

The dialog adds live previews (human-readable via cronstrue, next 3
trigger times via cron-parser evaluated in the bot timezone) and row
actions for edit / enable-toggle / delete.
2026-04-23 19:36:25 +08:00

16 lines
286 B
TypeScript

import { defineConfig } from 'vitest/config'
import dotenv from 'dotenv'
dotenv.config()
export default defineConfig({
test: {
globals: true,
include: [
'packages/**/*.test.ts',
'apps/**/*.test.ts',
],
env: process.env,
testTimeout: Infinity,
},
})