Skip to content

Commit

Permalink
update statelint to support Map states
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Wormald committed Sep 18, 2024
1 parent 635910a commit d56cd09
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 29 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,3 @@ Some functionality yet to be implemented:
* `Retry` and `Catch` fields
* Some AWS resources in `Task` steps
* Some runtime error handling and data validation

`Map` steps are not currently supported by the validation library, so definitions containing these
steps will need `validateDefinition` set to `false`.
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sfn-sim",
"version": "0.6.0",
"version": "0.7.0",
"description": "AWS Step Functions simulator for unit testing state machines",
"keywords": [
"aws",
Expand All @@ -18,7 +18,7 @@
"test:watch": "vitest"
},
"dependencies": {
"@wmfs/statelint": "^1.24.0",
"@wmfs/statelint": "^1.25.0",
"jshashes": "^1.0.8",
"jsonpath": "^1.1.1",
"random": "^5.1.0",
Expand Down
6 changes: 1 addition & 5 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,7 @@ test('executes a Map step', async () => {
},
];

const options = {
validateDefinition: false,
};

const stateMachine = load(definition, resources, options);
const stateMachine = load(definition, resources);
const result = await stateMachine.execute([{ number: 1 }, { number: 2 }, { number: 3 }]);

expect(mockAdder).toHaveBeenCalledTimes(3);
Expand Down

0 comments on commit d56cd09

Please sign in to comment.