Skip to content

Commit

Permalink
fix: Update README to adhere to v2 breaking changes of createTestPlans
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominique Wirz committed Dec 21, 2020
1 parent 8d26b7d commit d0af108
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { createTestPlans, StatesTestFunctions } from '@smartive/xstate-test-tool
import { FetchInterceptor, mockHeaders, mockResponse, RequestCallCountMock } from '@smartive/testcafe-utils';
import { TestEventsConfig } from '@xstate/test/lib/types';
import { RequestMock } from 'testcafe';
import { Context, machineConfig, statechart } from './state-charts';
import { Context, machine } from './machine-under-test';
// ...

type TestContext = {
Expand Down Expand Up @@ -99,10 +99,9 @@ const testEvents: TestEventsConfig<TestContext> = {
};

createTestPlans({
statechart,
machine,
tests,
testEvents,
machineConfig,
// add logLevel: LogLevel.INFO for some output which plans/paths are generated
}).forEach(
({ description: plan, paths }) => {
Expand Down

0 comments on commit d0af108

Please sign in to comment.