mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
defddc2257
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.
16 lines
286 B
TypeScript
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,
|
|
},
|
|
}) |