{"id":29868940,"url":"https://github.com/dirv/svelte-test-register","last_synced_at":"2026-02-23T12:54:20.716Z","repository":{"id":57375373,"uuid":"223459785","full_name":"dirv/svelte-test-register","owner":"dirv","description":"Compile imported Svelte 3 components on Node (e.g. for test runners like Mocha and Jasmine)","archived":false,"fork":false,"pushed_at":"2024-08-30T16:51:49.000Z","size":14,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T16:53:43.493Z","etag":null,"topics":["jasmine","mocha","svelte","testing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/dirv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-11-22T18:12:26.000Z","updated_at":"2022-03-18T20:58:15.000Z","dependencies_parsed_at":"2024-11-15T20:30:17.939Z","dependency_job_id":"d6f925b8-b713-48bf-83de-195db2ab4b44","html_url":"https://github.com/dirv/svelte-test-register","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dirv/svelte-test-register","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirv%2Fsvelte-test-register","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirv%2Fsvelte-test-register/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirv%2Fsvelte-test-register/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirv%2Fsvelte-test-register/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dirv","download_url":"https://codeload.github.com/dirv/svelte-test-register/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirv%2Fsvelte-test-register/sbom","scorecard":{"id":344481,"data":{"date":"2025-08-11","repo":{"name":"github.com/dirv/svelte-test-register","commit":"41e509287facb14155ab5755ac1d3ddffc6716ea"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-wv8q-r932-8hc7","Warn: Project is vulnerable to: GHSA-8266-84wp-wv5c"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T06:43:46.271Z","repository_id":57375373,"created_at":"2025-08-18T06:43:46.272Z","updated_at":"2025-08-18T06:43:46.272Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272236427,"owners_count":24897429,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["jasmine","mocha","svelte","testing"],"created_at":"2025-07-30T16:01:04.021Z","updated_at":"2025-10-26T13:39:47.149Z","avatar_url":"https://github.com/dirv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/svelte-test-register\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/svelte-test-register.svg\" alt=\"npm version\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://packagephobia.now.sh/result?p=svelte-test-register\"\u003e\n    \u003cimg src=\"https://packagephobia.now.sh/badge?p=svelte-test-register\" alt=\"install size\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://travis-ci.org/dirv/svelte-test-register\"\u003e\n    \u003cimg src=\"https://api.travis-ci.org/dirv/svelte-test-register.svg?branch=master\"\n         alt=\"build status\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://github.com/dirv/svelte-test-register/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/svelte-test-register.svg\" alt=\"license\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# svelte-test-register\n\nIf you're using Mocha or Jasmine to run tests against Svelte components, you'll need to configure Node to compile your `.svelte` files. That's what this script does.  It registers Svelte compilation outside of the production Rollup build process.\n\nIt also installs source map support so that stack traces map back to the original `.svelte` file.\n\n## Installation\n\n```bash\nnpm install --save-dev svelte-test-register\n```\n\n## Usage with Mocha\n\nIn `package.json`, update the Mocha script entry to require `svelte-test-register`:\n\n```json\n\"scripts\": {\n  \"mocha\": \"mocha --require svelte-test-register\"\n}\n```\n\n\n## Usage with Jasmine\n\nIn `spec/support/jasmine.json`, update the helpers section to include the `index.js` from the `svelt-test-register` package:\n\n```json\n\"helpers\": [\n  \"../node_modules/svelte-test-register/index.js\"\n]\n```\n\n## What about Jest?\n\nJest has a different mechanism for transforming specific files. See [jest-transform-svelte](https://github.com/rspieker/jest-transform-svelte) if you'd like to test Svelte components in Jest.\n\n## Known issues\n\nSource map support does not yet work in Jasmine.\n\n## Contributing\n\nAll contributions are welcome. Please feel free to create issues or raise PRs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirv%2Fsvelte-test-register","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirv%2Fsvelte-test-register","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirv%2Fsvelte-test-register/lists"}