The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
import { beforeEach, describe, expect, it } from 'vitest'
import { $vibeHeartsEnabled, setVibeHeartsEnabled } from '@/store/vibe-hearts-enabled'
const KEY = 'hermes.desktop.vibeHearts.v1'
describe('vibe hearts enabled', () => {
beforeEach(() => {
window.localStorage.removeItem(KEY)
// Reset to the pre-toggle always-on default without going through the
// setter's persist path first (absent key means on).
$vibeHeartsEnabled.set(true)
})
it('turns off and persists', () => {
setVibeHeartsEnabled(false)
expect($vibeHeartsEnabled.get()).toBe(false)
expect(window.localStorage.getItem(KEY)).toBe('off')
})
})