{"id":25006638,"url":"https://github.com/markandre13/wtrspecreporter","last_synced_at":"2025-03-30T00:16:28.731Z","repository":{"id":132464124,"uuid":"432516571","full_name":"markandre13/WTRSpecReporter","owner":"markandre13","description":"Mocha Spec Style Reporter for Web Test Runner","archived":false,"fork":false,"pushed_at":"2021-11-28T11:05:22.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T01:51:16.604Z","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/markandre13.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-27T16:53:02.000Z","updated_at":"2021-11-28T11:05:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"30ba5044-0083-4ef4-9ea9-9de809b4bcd3","html_url":"https://github.com/markandre13/WTRSpecReporter","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/markandre13%2FWTRSpecReporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markandre13%2FWTRSpecReporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markandre13%2FWTRSpecReporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markandre13%2FWTRSpecReporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markandre13","download_url":"https://codeload.github.com/markandre13/WTRSpecReporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258868,"owners_count":20748573,"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":"2025-02-05T01:50:27.552Z","updated_at":"2025-03-30T00:16:28.726Z","avatar_url":"https://github.com/markandre13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Goodbye Karma, Welcome Web Test Runner \u0026 Snowpack, ...\n\nA while ago I noticed that [toad.js](https://github.com/markandre13/toad.js)' unit tests did not run anymore.\n\nAs I like to run the unit tests in a real browser, I had choosen Angular's [Karma](https://karma-runner.github.io/latest/index.html). Setting it up to run Typescript with correct sourcemaps had been quite a challenge in the past and with the new errors, I saw no reason so sink any more time into it, especially\nsince [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) there's no need to bundle anymore during development.\n\nAfter getting [Vite](https://vitejs.dev) and [mocha-vite-puppeteer](https://github.com/larsthorup/mocha-vite-puppeteer) to work, I ran into some issues with esbuild and... wrong line numbers. And I also\nwanted something more modular and flexible.\n\nSo I took a look at [snowpack](https://www.snowpack.dev) and [web-test-runner](https://modern-web.dev/docs/test-runner/overview/) and found that it provides exactly what I needed: Typescript, Mocha, Chai and a real browser for the DOM.\n\nThe only thing missing was a reporter looking like [mocha's spec reporter](https://mochajs.org/#test-duration) or [karma-mocha-reporter](https://www.npmjs.com/package/karma-mocha-reporter).\n\nSo here it is: [WTRSpecReporter.js](WTRSpecReporter.js) and that's how it looks:\n\n\u003cimg src=\"screenshot.png\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkandre13%2Fwtrspecreporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkandre13%2Fwtrspecreporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkandre13%2Fwtrspecreporter/lists"}