chronocat/packages/engine-chronocat-event/tests/mocks/index.ts

29 lines
629 B
TypeScript
Raw Normal View History

2024-03-13 14:20:55 +00:00
import type { ChronocatContext } from '@chronocat/shell'
import h from '@satorijs/element'
export const ctx: ChronocatContext = {
chronocat: {
l: {
info: jest.fn(),
warn: jest.fn(),
error: jest.fn(),
debug: jest.fn(),
} as unknown as ChronocatContext['chronocat']['l'],
h,
2024-03-13 14:57:27 +00:00
} as ChronocatContext['chronocat'],
2024-03-19 16:57:20 +00:00
chronocatEngineChronocatApi: {
msgBoxActiv: {
activate: () => {},
},
},
2024-03-13 14:20:55 +00:00
}
export const satoriConfig = {
type: 'satori',
listen: '0.0.0.0',
port: 5500,
self_url: 'https://chronocat.vercel.app',
token: 'DEFINE_CHRONO_TOKEN',
enable: true,
} as const