16 lines
515 B
TypeScript
16 lines
515 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import * as entry from '../src/index.js'
|
|
|
|
describe('package entrypoint exports', () => {
|
|
it('exposes the primary factory and singleton', () => {
|
|
expect(entry.tf).toBeDefined()
|
|
expect(typeof entry.createTypedFetch).toBe('function')
|
|
})
|
|
|
|
it('exposes key utilities for advanced users', () => {
|
|
expect(entry.RuntimeTypeInference).toBeDefined()
|
|
expect(entry.WTinyLFUCache).toBeDefined()
|
|
expect(entry.TypeDeclarationGenerator).toBeDefined()
|
|
})
|
|
})
|