{"id":25437879,"url":"https://github.com/fabogit/vitest-testing","last_synced_at":"2026-04-17T13:32:58.388Z","repository":{"id":37265245,"uuid":"505527148","full_name":"fabogit/Vitest-testing","owner":"fabogit","description":"Tests using Vitest library (Jest)","archived":false,"fork":false,"pushed_at":"2022-06-22T09:55:10.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-29T06:12:32.610Z","etag":null,"topics":["jest","tdd","test","unit-testing","vitest"],"latest_commit_sha":null,"homepage":"","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/fabogit.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":"2022-06-20T16:59:42.000Z","updated_at":"2025-01-07T22:45:58.000Z","dependencies_parsed_at":"2022-08-24T15:52:05.456Z","dependency_job_id":null,"html_url":"https://github.com/fabogit/Vitest-testing","commit_stats":null,"previous_names":["fabogit/vitest-testing","fabogit/testing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fabogit/Vitest-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabogit%2FVitest-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabogit%2FVitest-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabogit%2FVitest-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabogit%2FVitest-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabogit","download_url":"https://codeload.github.com/fabogit/Vitest-testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabogit%2FVitest-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000778,"owners_count":26082911,"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-10-09T02:00:07.460Z","response_time":59,"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":["jest","tdd","test","unit-testing","vitest"],"created_at":"2025-02-17T09:27:38.845Z","updated_at":"2025-10-09T03:10:47.827Z","avatar_url":"https://github.com/fabogit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testing\n\nTesting using Jest and Vitest\n\n\n- KISS: fail easy to easy debug\n\n- Only test one thing/feature/behaviour (validate input OR transform it)\n\n- Arrange, Act, Assert\n\n- Don't test 3d party code (fetch(), querySelector() ecc..)\n\n`npm install vitest --save-dev`\n\nin `package.json` use\n\n- for `server` testing, default environment `node`\n\n```\n\"scripts\": {\n    \"test\": \"vitest --run --reporter verbose\",\n    \"test:watch\": \"vitest\"\n  },\n```\n\n- for `client` testing, environment `jsdom` (jest) `happy-dom` (vitest)\n\n```\n\"scripts\": {\n    \"test\": \"vitest --run --environment happy-dom\"\n    },\n```\n\n`npm test`\n\nhttps://vitest.dev/\n\nhttps://vitest.dev/guide/migration.html\n\nhttps://testing-library.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabogit%2Fvitest-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabogit%2Fvitest-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabogit%2Fvitest-testing/lists"}