{"id":22775499,"url":"https://github.com/chlbri/test-machine","last_synced_at":"2025-03-30T13:15:23.455Z","repository":{"id":44901340,"uuid":"370787570","full_name":"chlbri/test-machine","owner":"chlbri","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-19T18:37:50.000Z","size":949,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-05T14:50:37.499Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chlbri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-25T18:13:38.000Z","updated_at":"2021-11-30T17:04:23.000Z","dependencies_parsed_at":"2022-09-10T17:41:12.505Z","dependency_job_id":null,"html_url":"https://github.com/chlbri/test-machine","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chlbri%2Ftest-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chlbri%2Ftest-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chlbri%2Ftest-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chlbri%2Ftest-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chlbri","download_url":"https://codeload.github.com/chlbri/test-machine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246320198,"owners_count":20758410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-11T18:33:05.835Z","updated_at":"2025-03-30T13:15:23.412Z","avatar_url":"https://github.com/chlbri.png","language":"TypeScript","readme":"# THE LIBRARY WILL BE RENAMED @core/test-machine, this package will be archived in 6 months please switch\n\n\n# For testing xstate machines\n\nThe package helps to run test for Observable Xstate machine\n\nIt's built with **tsdx** framework\n\n\n\n### Two functions are used :\n\n## `generateSyncMachineTest` :\n\nAs the name says, it's for synchronous machines which don't use promises\n\n\nN.B/Changes : In the version 0.1.4, we have a correction, the number of values is the number of events + 1. It was an error of comprehension. So you test the initial state given by the variable 'initialState' or the initial context of the context. After, you test the others.\n\n\n\n## `generateAsyncMachineTest` :\n\nThe main function with an **waiterBeforeEachEvent** variable. It is responsible to wait before each emission of an event.\n\nSince we deal with Observable, we add an **timeout** variable to cancel test after a certain amount of time.\n\n`Hope you enjoy these two functions !`","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchlbri%2Ftest-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchlbri%2Ftest-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchlbri%2Ftest-machine/lists"}