Open History to see the last commit
1import { describe, expect, it } from 'vitest'
2import { isRecorderUnavailable } from './reactor-session'
3
4describe('isRecorderUnavailable', () => {
5 it('matches the SDK code', () => {
6 expect(isRecorderUnavailable({ code: 'RECORDER_DISABLED' })).toBe(true)
7 })
8
9 it('matches recorder copy', () => {
10 expect(isRecorderUnavailable(new Error('recorder not enabled'))).toBe(true)
11 })
12
13 it('ignores other errors', () => {
14 expect(isRecorderUnavailable(new Error('network'))).toBe(false)
15 })
16})