{"id":15754853,"url":"https://github.com/blueprintui/web-test-runner-jasmine","last_synced_at":"2026-01-26T07:14:20.023Z","repository":{"id":70240904,"uuid":"418326308","full_name":"blueprintui/web-test-runner-jasmine","owner":"blueprintui","description":"Plugin for using Jasmine with Web Test Runner","archived":false,"fork":false,"pushed_at":"2026-01-25T03:54:23.000Z","size":305,"stargazers_count":10,"open_issues_count":5,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-25T08:59:42.089Z","etag":null,"topics":["jasmine","web-test-runner"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/blueprintui.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-10-18T03:09:39.000Z","updated_at":"2026-01-25T03:54:27.000Z","dependencies_parsed_at":"2024-04-13T21:41:13.737Z","dependency_job_id":"ea51318b-d2eb-481e-b29f-1de090299ce0","html_url":"https://github.com/blueprintui/web-test-runner-jasmine","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/blueprintui/web-test-runner-jasmine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueprintui%2Fweb-test-runner-jasmine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueprintui%2Fweb-test-runner-jasmine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueprintui%2Fweb-test-runner-jasmine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueprintui%2Fweb-test-runner-jasmine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blueprintui","download_url":"https://codeload.github.com/blueprintui/web-test-runner-jasmine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueprintui%2Fweb-test-runner-jasmine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28769510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T06:37:25.426Z","status":"ssl_error","status_checked_at":"2026-01-26T06:37:23.039Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","web-test-runner"],"created_at":"2024-10-04T08:05:15.667Z","updated_at":"2026-01-26T07:14:20.007Z","avatar_url":"https://github.com/blueprintui.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web-test-runner-jasmine\n\n[![npm version](https://badge.fury.io/js/web-test-runner-jasmine.svg)](https://badge.fury.io/js/web-test-runner-jasmine) ![CI Build](https://github.com/coryrylan/web-test-runner-jasmine/actions/workflows/build.yml/badge.svg)\n\nA [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/) plugin for running Jasmine.\n\n## Setup\n\nImport `jasmineTestRunnerConfig` and add too your `web-test-runner.config.mjs`.\nIf using TypeScript you can add `esbuildPlugin`.\n\n```javascript\nimport { playwrightLauncher } from '@web/test-runner-playwright';\nimport { esbuildPlugin } from '@web/dev-server-esbuild';\nimport { jasmineTestRunnerConfig } from 'web-test-runner-jasmine';\n\nexport default /** @type {import(\"@web/test-runner\").TestRunnerConfig} */ ({\n  ...jasmineTestRunnerConfig(),\n  testFramework: {\n    config: {\n      defaultTimeoutInterval: 5000\n    },\n  },\n  nodeResolve: true,\n  files: ['./src/*.spec.js'],\n  browsers: [playwrightLauncher({ product: 'chromium' })],\n  plugins: [esbuildPlugin({ target: 'auto', sourceMap: true })]\n});\n```\n\nOnce added you can use Jasmine within your tests.\n\n```javascript\ndescribe('a test suite', () =\u003e {\n  let element: HTMLElement;\n\n  beforeEach(() =\u003e {\n    element = document.createElement('p');\n    element.innerHTML = 'hello there';\n  });\n\n  afterEach(() =\u003e {\n    element.remove();\n  });\n\n  it('should create element', () =\u003e {\n    expect(element.innerHTML).toBe('hello there');\n  });\n});\n```\n\nTo run your tests run `web-test-runner` in the terminal.\n\n```bash\nweb-test-runner\n```\n\n## TypeScript\n\nIf you use TypeScript you will need to add some additional configuiration. Update your\nconfig to read `.ts` extentions and add the `ts: true` flag to the `esBuildPlugin`.\n\n```javascript\nimport { playwrightLauncher } from '@web/test-runner-playwright';\nimport { esbuildPlugin } from '@web/dev-server-esbuild';\nimport { jasmineTestRunnerConfig } from 'web-test-runner-jasmine';\n\nexport default /** @type {import(\"@web/test-runner\").TestRunnerConfig} */ ({\n  ...\n  files: ['./src/*.spec.ts'],\n  plugins: [esbuildPlugin({ ts: true, json: true, target: 'auto', sourceMap: true })]\n  ...\n});\n```\n\nEnsure you have the `@types/jasmine` package installed and add `jasmine` to the `types`\nin your `tsconfig.json`.\n\n```json\n{\n  \"compilerOptions\": {\n    ...\n    \"types\": [\"jasmine\"],\n    ...\n  }\n}\n```\n\nLearn more about [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblueprintui%2Fweb-test-runner-jasmine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblueprintui%2Fweb-test-runner-jasmine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblueprintui%2Fweb-test-runner-jasmine/lists"}