From 5c2912b505eca4cad61f3b6baa955502acadf153 Mon Sep 17 00:00:00 2001 From: Christian Alfoni Date: Sat, 26 Jun 2021 22:13:18 +0200 Subject: [PATCH] fix(overmind-statechart): fix tests related to typing --- packages/overmind-statechart/src/index.test.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/overmind-statechart/src/index.test.ts b/packages/overmind-statechart/src/index.test.ts index e1ef5918..b5dcd660 100644 --- a/packages/overmind-statechart/src/index.test.ts +++ b/packages/overmind-statechart/src/index.test.ts @@ -213,7 +213,10 @@ describe('Statecharts', () => { type Context = IContext<{ state: typeof state - actions: typeof actions + actions: { + onInitializeOvermind: typeof actions.onInitializeOvermind + increaseCount: typeof actions.increaseCount + } }> const instance = createOvermind( @@ -1054,7 +1057,12 @@ describe('Statecharts', () => { type Context = IContext<{ state: typeof state - actions: typeof actions + actions: { + step: typeof actions.step + step2: typeof actions.step2 + entry: typeof actions.entry + exit: typeof actions.exit + } }> const instance = createOvermind(