{"id":16926471,"url":"https://github.com/thespyder/rescript-mocha","last_synced_at":"2025-02-23T19:26:44.679Z","repository":{"id":57688856,"uuid":"474886119","full_name":"TheSpyder/rescript-mocha","owner":"TheSpyder","description":"Mocha bindings for ReScript","archived":false,"fork":false,"pushed_at":"2024-06-30T14:11:33.000Z","size":92,"stargazers_count":0,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T10:05:36.185Z","etag":null,"topics":["bucklescript","mocha","reasonml","rescript","rescript-bindings"],"latest_commit_sha":null,"homepage":"","language":"ReScript","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/TheSpyder.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-03-28T07:09:45.000Z","updated_at":"2022-03-28T23:39:14.000Z","dependencies_parsed_at":"2024-04-11T06:30:27.045Z","dependency_job_id":null,"html_url":"https://github.com/TheSpyder/rescript-mocha","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/TheSpyder%2Frescript-mocha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSpyder%2Frescript-mocha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSpyder%2Frescript-mocha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSpyder%2Frescript-mocha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheSpyder","download_url":"https://codeload.github.com/TheSpyder/rescript-mocha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240367079,"owners_count":19790193,"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":["bucklescript","mocha","reasonml","rescript","rescript-bindings"],"created_at":"2024-10-13T20:29:58.184Z","updated_at":"2025-02-23T19:26:44.644Z","avatar_url":"https://github.com/TheSpyder.png","language":"ReScript","readme":"# rescript-mocha\n\nReScript bindings for mocha\n\n## Install \n\n```\nnpm install rescript-mocha --save-dev \n```\n\n## Usage \n\n```rescript\nopen RescriptMocha\nlet {it:it', it_skip:it_skip'} = module (Promise)\nopen Mocha\nopen Belt\n\ndescribe(\"Some Test Suite\", () =\u003e\n  describe(\"List.map\", () =\u003e {\n    it(\"should map the values\", () =\u003e\n      Assert.deep_equal(Array.map([1, 2, 3], (i) =\u003e i * 2), [2, 4, 6])\n    )\n\n    it(\"should work with an empty list\", () =\u003e\n      Assert.deep_equal(Array.map([], (i) =\u003e i * 2), [])\n    )\n\n    it'(\"should be successful\", () =\u003e\n      Js.Promise.make((~resolve, ~reject as _) =\u003e\n        Js.Global.setTimeout(() =\u003e {\n          Assert.equal(3, 3)\n          resolve(. true)\n        }, 300)\n        -\u003eignore\n      )\n    )\n  })\n)\n\n\n```\n\n## License and Credits\n\nAll code is licensed as MIT. See [LICENSE](LICENSE).\n\nThis project was forked from [bs-mocha](https://github.com/reasonml-community/bs-mocha) after it was abandoned.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthespyder%2Frescript-mocha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthespyder%2Frescript-mocha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthespyder%2Frescript-mocha/lists"}