Abstract virtual machine done in TypeScript. Originally intended as a backend for my visual novel browser engine, but dropped it in favor of a generic state machine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Sealed Sins, 2023-2025. | |
| */ | |
| import { describe, it, expect, vi } from 'vitest'; | |
| import { EventManager } from './event'; | |
| describe('EventManager', () => { | |
| it('manages untyped events', () => { | |
| const manager = new EventManager(); | |
| const listener = vi.fn(); |