diff --git a/src/input/index.ts b/src/input/index.ts index 17e4c2c..e5c4f65 100644 --- a/src/input/index.ts +++ b/src/input/index.ts @@ -1,2 +1,2 @@ export * from './input-manager.js'; - +export * from './actions.js'; diff --git a/tests/public-exports.test.ts b/tests/public-exports.test.ts new file mode 100644 index 0000000..b0e0557 --- /dev/null +++ b/tests/public-exports.test.ts @@ -0,0 +1,11 @@ +import { describe, expect, it } from 'vitest'; +import * as root from '../src/index.js'; +import * as input from '../src/input/index.js'; +import { RenderoniEngine } from '../src/core/engine.js'; + +describe('public exports', () => { + it('exposes ActionRegistry, the type behind engine.actions, from renderoni and renderoni/input', () => { + expect(root.ActionRegistry).toBe(input.ActionRegistry); + expect(new RenderoniEngine({ mode: 'headless' }).actions).toBeInstanceOf(root.ActionRegistry); + }); +});