feat(engine): expose canonical replay sessions through native workers

This commit is contained in:
Boki 2026-10-23 00:54:36 -04:00
parent 417a7bd21e
commit e3635f23cf
26 changed files with 2693 additions and 33 deletions

View file

@ -2,6 +2,7 @@ import { createRequire } from 'node:module';
import { describe, expect, it } from 'bun:test';
import {
BacktestEngine,
FinancialReplaySession,
IncrementalSMA,
TechnicalIndicators,
TradingEngine,
@ -70,6 +71,7 @@ describe('generated native bindings', () => {
const binding = createRequire(import.meta.url)('@stock-bot/engine');
expect(binding.TechnicalIndicators).toBe(TechnicalIndicators);
expect(binding.IncrementalSMA).toBe(IncrementalSMA);
expect(binding.FinancialReplaySession).toBe(FinancialReplaySession);
});
it('MACD keeps full-length EMA series aligned without out-of-bounds access', () => {