- createChatClient: bearer auth, one refresh-and-retry on 401, 422 field errors
- useChat over useState: host bootstrap, open a channel, send
- ChatPage, ChatChannelList, ChatMessageList, ChatComposer
- runtime config chat.apiBase, public.chat.{apiBase,channelsApiBase,botsApiBase,hostApiBase}
11 lines
282 B
TypeScript
11 lines
282 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
// Unit tests of the layer's pure modules (app/lib) in Node. Components are
|
|
// covered by the consuming app's browser checks.
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'node',
|
|
include: ['tests/**/*.test.ts'],
|
|
},
|
|
})
|