{"id":23055424,"url":"https://github.com/gamurs-group/fable-mocha","last_synced_at":"2025-08-25T20:02:01.066Z","repository":{"id":97726818,"uuid":"171583882","full_name":"gamurs-group/fable-mocha","owner":"gamurs-group","description":"Fable bindings for Mocha","archived":false,"fork":false,"pushed_at":"2019-03-08T04:32:46.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-02-08T19:16:44.385Z","etag":null,"topics":["fable-bindings","fable2"],"latest_commit_sha":null,"homepage":null,"language":"F#","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/gamurs-group.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"publiccode":null,"codemeta":null}},"created_at":"2019-02-20T02:10:12.000Z","updated_at":"2021-07-01T03:22:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"95251eb9-e87f-4744-a14b-1ea481908241","html_url":"https://github.com/gamurs-group/fable-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/gamurs-group%2Ffable-mocha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamurs-group%2Ffable-mocha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamurs-group%2Ffable-mocha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gamurs-group%2Ffable-mocha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gamurs-group","download_url":"https://codeload.github.com/gamurs-group/fable-mocha/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246939225,"owners_count":20857922,"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":["fable-bindings","fable2"],"created_at":"2024-12-16T01:12:08.798Z","updated_at":"2025-04-03T05:17:28.120Z","avatar_url":"https://github.com/gamurs-group.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fable.Import.MochaJS\n\nFable bindings for [Mocha.js](https://mochajs.org/).\n\n\n### Nuget Packages\n\nStable | Prerelease\n--- | ---\n[![NuGet Badge](https://buildstats.info/nuget/Fable.Import.MochaJS)](https://www.nuget.org/packages/Fable.Import.MochaJS/) | [![NuGet Badge](https://buildstats.info/nuget/Fable.Import.MochaJS?includePreReleases=true)](https://www.nuget.org/packages/Fable.Import.MochaJS/)\n\n\n## Getting Started\n\n### Build Configuration\n\nSee https://harry.vangberg.name/unit-testing-fable-with-mocha\n\n### Example\n\n#### Test Suite\n\n```\nmodule Test.Example\n\nopen Fable.Import.MochaJS\n\n/// Assert that the expected and actual values are equal\nlet assertEqual expected actual: unit =\n    Assert.AreEqual(actual, expected)\n\n/// Assert that the expected and actual values are not equal\nlet assertNotEqual expected actual: unit =\n    Assert.NotEqual(actual, expected)\n\ndescribe \"test suite\" \u003c| fun _ -\u003e\n    it \"should do something poorly\" \u003c| fun _ -\u003e\n        assertEqual 1 2\n    it \"should do something well\" \u003c| fun _ -\u003e\n        assertEqual 2 2\n    )\n    it \"should do something else well\" \u003c| fun _ -\u003e\n        assertNotEqual 23 65\n|\u003e ignore\n```\n\n#### Test Runner\n\nYou will also need to import side effects from *every test suite* in a main test runner, otherwise test suites\nwon't be detected by Mocha.\n\n```\nmodule Test.Main\n\nopen Fable.Core.JsInterop\n\nimportSideEffects \"./TestSuiteA.fs\"\nimportSideEffects \"./TestSuiteB.fs\"\n// etc\n\n```\n\n\n## Development\n\n### Building\n\nMake sure the following **requirements** are installed in your system:\n\n* [dotnet SDK](https://www.microsoft.com/net/download/core) 2.0 or higher\n* [node.js](https://nodejs.org) 6.11 or higher\n* [yarn](https://yarnpkg.com)\n* [Mono](http://www.mono-project.com/) if you're on Linux or macOS.\n\nThen you just need to type `./build.cmd` or `./build.sh`\n\n### Release\n\nIn order to push the package to [nuget.org](https://nuget.org) you need to add your API keys to `NUGET_KEY` environmental variable.\nYou can create a key [here](https://www.nuget.org/account/ApiKeys).\n\n- Update RELEASE_NOTES with a new version, data and release notes [ReleaseNotesHelper](http://fake.build/apidocs/fake-releasenoteshelper.html).\nEx:\n\n```\n#### 0.2.0 - 30.04.2017\n* FEATURE: Does cool stuff!\n* BUGFIX: Fixes that silly oversight\n```\n\n- You can then use the Release target. This will:\n  - make a commit bumping the version: Bump version to 0.2.0\n  - publish the package to nuget\n  - push a git tag\n\n`./build.sh Release`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamurs-group%2Ffable-mocha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgamurs-group%2Ffable-mocha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgamurs-group%2Ffable-mocha/lists"}