├── .github └── workflows │ ├── nodejs.yml │ └── publish.yml ├── .gitignore ├── .npmignore ├── .prettierrc ├── LICENSE ├── README.md ├── package.json ├── src ├── FakeStateMachine.ts ├── RunStateResult.ts ├── helper │ └── choiceHelper.ts └── index.ts ├── test ├── FakeStateMachine-run.ts ├── FakeStateMachine-runCondition.ts ├── FakeStateMachine-runPartial.ts ├── FakeStateMachine-runState.ts ├── RunStateResult.ts ├── fixtures │ ├── definitions │ │ ├── add.json │ │ ├── choice-more-than-one-choice.json │ │ ├── copy-object.json │ │ ├── execution-path-multiple.json │ │ ├── fail.json │ │ ├── loop.json │ │ ├── many-states.json │ │ ├── parameter-property.json │ │ ├── pass-input-to-resultpath.json │ │ ├── pass-inputpath-is-undefined.json │ │ ├── pass-result-to-resultpath.json │ │ ├── pass-without-result-and-resultpath.json │ │ ├── startat-does-not-exist.json │ │ ├── startat-field-does-not-exist.json │ │ ├── state-with-end-is-true.json │ │ ├── state-with-next-property.json │ │ ├── state-without-next-and-end.json │ │ ├── states-with-common-prefix.json │ │ ├── succeed.json │ │ ├── task-addasync.json │ │ ├── task-complex-inputpath-and-outputpath.json │ │ ├── task-complex-inputpath.json │ │ ├── task-input-to-resource.json │ │ ├── task-inputpath-is-null.json │ │ ├── task-inputpath-to-outputpath.json │ │ ├── task-inputpath.json │ │ ├── task-resultpath-is-undefined.json │ │ ├── task-unknown-resource.json │ │ ├── task-without-input.json │ │ ├── two-states.json │ │ └── unknown-type.json │ └── resources.ts ├── helper │ └── choiceHelper.ts ├── jsonpath.ts └── readme.example.ts └── tsconfig.json /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | test/ 3 | .eslintrc.js 4 | .travis.yml 5 | tsconfig.json 6 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/package.json -------------------------------------------------------------------------------- /src/FakeStateMachine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/src/FakeStateMachine.ts -------------------------------------------------------------------------------- /src/RunStateResult.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/src/RunStateResult.ts -------------------------------------------------------------------------------- /src/helper/choiceHelper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/src/helper/choiceHelper.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/src/index.ts -------------------------------------------------------------------------------- /test/FakeStateMachine-run.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/FakeStateMachine-run.ts -------------------------------------------------------------------------------- /test/FakeStateMachine-runCondition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/FakeStateMachine-runCondition.ts -------------------------------------------------------------------------------- /test/FakeStateMachine-runPartial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/FakeStateMachine-runPartial.ts -------------------------------------------------------------------------------- /test/FakeStateMachine-runState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/FakeStateMachine-runState.ts -------------------------------------------------------------------------------- /test/RunStateResult.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/RunStateResult.ts -------------------------------------------------------------------------------- /test/fixtures/definitions/add.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/add.json -------------------------------------------------------------------------------- /test/fixtures/definitions/choice-more-than-one-choice.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/choice-more-than-one-choice.json -------------------------------------------------------------------------------- /test/fixtures/definitions/copy-object.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/copy-object.json -------------------------------------------------------------------------------- /test/fixtures/definitions/execution-path-multiple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/execution-path-multiple.json -------------------------------------------------------------------------------- /test/fixtures/definitions/fail.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/fail.json -------------------------------------------------------------------------------- /test/fixtures/definitions/loop.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/loop.json -------------------------------------------------------------------------------- /test/fixtures/definitions/many-states.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/many-states.json -------------------------------------------------------------------------------- /test/fixtures/definitions/parameter-property.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/parameter-property.json -------------------------------------------------------------------------------- /test/fixtures/definitions/pass-input-to-resultpath.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/pass-input-to-resultpath.json -------------------------------------------------------------------------------- /test/fixtures/definitions/pass-inputpath-is-undefined.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/pass-inputpath-is-undefined.json -------------------------------------------------------------------------------- /test/fixtures/definitions/pass-result-to-resultpath.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/pass-result-to-resultpath.json -------------------------------------------------------------------------------- /test/fixtures/definitions/pass-without-result-and-resultpath.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/pass-without-result-and-resultpath.json -------------------------------------------------------------------------------- /test/fixtures/definitions/startat-does-not-exist.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/startat-does-not-exist.json -------------------------------------------------------------------------------- /test/fixtures/definitions/startat-field-does-not-exist.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/startat-field-does-not-exist.json -------------------------------------------------------------------------------- /test/fixtures/definitions/state-with-end-is-true.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/state-with-end-is-true.json -------------------------------------------------------------------------------- /test/fixtures/definitions/state-with-next-property.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/state-with-next-property.json -------------------------------------------------------------------------------- /test/fixtures/definitions/state-without-next-and-end.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/state-without-next-and-end.json -------------------------------------------------------------------------------- /test/fixtures/definitions/states-with-common-prefix.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/states-with-common-prefix.json -------------------------------------------------------------------------------- /test/fixtures/definitions/succeed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/succeed.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-addasync.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-addasync.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-complex-inputpath-and-outputpath.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-complex-inputpath-and-outputpath.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-complex-inputpath.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-complex-inputpath.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-input-to-resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-input-to-resource.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-inputpath-is-null.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-inputpath-is-null.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-inputpath-to-outputpath.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-inputpath-to-outputpath.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-inputpath.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-inputpath.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-resultpath-is-undefined.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-resultpath-is-undefined.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-unknown-resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-unknown-resource.json -------------------------------------------------------------------------------- /test/fixtures/definitions/task-without-input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/task-without-input.json -------------------------------------------------------------------------------- /test/fixtures/definitions/two-states.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/two-states.json -------------------------------------------------------------------------------- /test/fixtures/definitions/unknown-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/definitions/unknown-type.json -------------------------------------------------------------------------------- /test/fixtures/resources.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/fixtures/resources.ts -------------------------------------------------------------------------------- /test/helper/choiceHelper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/helper/choiceHelper.ts -------------------------------------------------------------------------------- /test/jsonpath.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/jsonpath.ts -------------------------------------------------------------------------------- /test/readme.example.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/test/readme.example.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oshikiri/fake-step-functions/HEAD/tsconfig.json --------------------------------------------------------------------------------