{"id":16095910,"url":"https://github.com/joakin/mocha-babel-watch-test","last_synced_at":"2025-04-05T20:15:49.646Z","repository":{"id":141454233,"uuid":"47330217","full_name":"joakin/mocha-babel-watch-test","owner":"joakin","description":"A test repo with mocha, babel compilation and test watching","archived":false,"fork":false,"pushed_at":"2015-12-03T12:25:46.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T19:55:39.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joakin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-03T12:20:53.000Z","updated_at":"2015-12-03T12:25:46.000Z","dependencies_parsed_at":"2023-03-14T02:45:14.288Z","dependency_job_id":null,"html_url":"https://github.com/joakin/mocha-babel-watch-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fmocha-babel-watch-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fmocha-babel-watch-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fmocha-babel-watch-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fmocha-babel-watch-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joakin","download_url":"https://codeload.github.com/joakin/mocha-babel-watch-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393573,"owners_count":20931813,"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-10-09T17:09:32.100Z","updated_at":"2025-04-05T20:15:49.620Z","avatar_url":"https://github.com/joakin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mocha-babel-watch-test\n\nTest repo to check mocha + babel when watching files.\n\nIllustrates the bug https://github.com/mochajs/mocha/issues/1847\n\nWhen requiring mocha functions to not use globals, watching doesn't work.\n\n```sh\nnpm install\n\nmocha-babel-watch-test $ mocha -w --compilers js:babel-register test.js\n\n  Array\n    #indexOf()\n      ✓ should return -1 when the value is not present\n\n  1 passing (82ms)\n\n\t# Modify the test.js file\n\n  0 passing (0ms)\n```\n\nIf you uncomment the mocha import line, the watcher works fine.\n\n```js\n// Comment this to have it work but use evil global variables\nimport { describe, it } from 'mocha'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fmocha-babel-watch-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoakin%2Fmocha-babel-watch-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fmocha-babel-watch-test/lists"}