{"id":17459078,"url":"https://github.com/arjunattam/try-jest-playwright","last_synced_at":"2026-02-11T17:35:52.676Z","repository":{"id":40755753,"uuid":"279700858","full_name":"arjunattam/try-jest-playwright","owner":"arjunattam","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-06T11:30:10.000Z","size":847,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-18T07:17:28.664Z","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/arjunattam.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":"2020-07-14T21:52:54.000Z","updated_at":"2021-02-17T04:19:34.000Z","dependencies_parsed_at":"2023-02-06T00:00:59.215Z","dependency_job_id":null,"html_url":"https://github.com/arjunattam/try-jest-playwright","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arjunattam/try-jest-playwright","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Ftry-jest-playwright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Ftry-jest-playwright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Ftry-jest-playwright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Ftry-jest-playwright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arjunattam","download_url":"https://codeload.github.com/arjunattam/try-jest-playwright/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjunattam%2Ftry-jest-playwright/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270757488,"owners_count":24640089,"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-16T02:00:11.002Z","response_time":91,"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":[],"created_at":"2024-10-18T04:41:56.572Z","updated_at":"2026-02-11T17:35:47.649Z","avatar_url":"https://github.com/arjunattam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# try-jest-playwright\n\nExample test suite with [Playwright](https://playwright.dev) and [Jest](https://jestjs.io) with [jest-playwright-preset](https://github.com/playwright-community/jest-playwright) to configure the Jest environment for browser tests. The example uses [Visual Studio Codespaces](https://online.visualstudio.com/) but can be extended to work with any web app with authentication.\n\n## Features\n* **Isolated context per test**: Uses `context` global which is an isolated [browser context](https://playwright.dev/#version=v1.2.1\u0026path=docs%2Fcore-concepts.md\u0026q=browser-contexts) per test.\n* **Screenshots on failure**: Auto-capture screenshots of failed test pages (in the `screenshots` directory).\n* **Login only once**: Uses `globalSetup` in Jest config to setup a one-time login which is then re-used in tests.\n* **TypeScript** support\n\n## Usage\n\nInstall dependencies\n```sh\nnpm install\n```\n\n\u003e **Note**: Running tests requires test account credentials set as `USER` and `PASSWORD` environment variables.\n\nRun all tests in headless mode.\n```sh\nnpm test # or npx jest\n```\n\nRun all tests in a particular browser and headful mode.\n```sh\nHEADLESS=false BROWSER=chromium npm test\n```\n\nRun single test by spec name (see [other options in Jest CLI config](https://jestjs.io/docs/en/cli)).\n```sh\nBROWSER=chromium npx jest -t \"should be logged in\"\n```\n\n## Future work\n* Add support for using the VS Code debugger\n* Add support for junit reports\n* Replace environment variables with something more cross-platform\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjunattam%2Ftry-jest-playwright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjunattam%2Ftry-jest-playwright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjunattam%2Ftry-jest-playwright/lists"}