Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

byok-subpath.test.ts

16 lines544 Bytes

1import { defineByok, memoryStorage } from '../byok/src/index'
2import { ChatClient } from '../src/index'
3import { describe, expect, it } from 'vitest'
4​
5describe('client re-exports', () => {
6 it('exports BYOK from the byok subpath', () => {
7 expect(typeof defineByok).toBe('function')
8 expect(typeof memoryStorage).toBe('function')
9 const byok = defineByok({ storage: memoryStorage() })
10 expect(byok).toBeDefined()
11 })
12​
13 it('exports ChatClient from the package root', () => {
14 expect(typeof ChatClient).toBe('function')
15 })
16})