{"id":15311708,"url":"https://github.com/zigomir/vite-test","last_synced_at":"2025-04-23T04:22:19.890Z","repository":{"id":36983584,"uuid":"310006677","full_name":"zigomir/vite-test","owner":"zigomir","description":"Simple testing with vite","archived":false,"fork":false,"pushed_at":"2023-02-22T02:19:39.000Z","size":197,"stargazers_count":10,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T14:05:09.855Z","etag":null,"topics":["test-runner","vite","vite-test","vue","vue-test-utils","vue-test-utils-next","vue3"],"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/zigomir.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":"2020-11-04T13:11:54.000Z","updated_at":"2022-03-19T08:32:32.000Z","dependencies_parsed_at":"2025-01-26T20:42:07.309Z","dependency_job_id":null,"html_url":"https://github.com/zigomir/vite-test","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigomir%2Fvite-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigomir%2Fvite-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigomir%2Fvite-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigomir%2Fvite-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zigomir","download_url":"https://codeload.github.com/zigomir/vite-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250367346,"owners_count":21418864,"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":["test-runner","vite","vite-test","vue","vue-test-utils","vue-test-utils-next","vue3"],"created_at":"2024-10-01T08:34:17.675Z","updated_at":"2025-04-23T04:22:19.850Z","avatar_url":"https://github.com/zigomir.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Testing"],"readme":"# vite-test\n\n\u003e use `vite` to test your vue app in real browser and/or `puppeteer`\n\n## benefits\n\n- fast execution, simple setup\n- compared to `jest` this setup is a breeze, e.g. no additional config files, no transformations, just ES modules\n- native environment compared to `jest` \u0026 `js-dom`\n\n## usage\n\n- in your `vite` project you'll need to install this 3 packages\n- `tap-dot` is only needed if you use CI and want to get correct exit code\n\n```sh\nnpm install --save-dev vite-test @vue/test-utils@next tap-dot\n```\n\nsample `package.json` scripts:\n\n```json\n\"scripts\": {\n  \"test:debug\": \"vite-test --debug\",\n  \"test\": \"vite-test | tap-dot\"\n}\n```\n\n- `vite-test --debug` to keep vite server open on `http://localhost:3000` to debug your test in browser dev tools directly, e.g. on `http://localhost:3000/test.html`\n- `vite-test | tap-dot` CI friendly exit code by tap-dot library (`npm install tap-dot`)\n\nAlso see `/test` directory\n\n### terminal / CI\n\n`vite-test` will run your tests in `puppeteer`\n\n### browser through vite\n\nOpen http://localhost:3000/test.html when running `vite` dev server and open your dev tools\n\n## dependencies\n\n- [@vue/test-utils](https://github.com/vuejs/vue-test-utils-next) – version 2+ which supports Vue 3\n- [puppeteer](https://pptr.dev) to run tests on your CI\n- [zora test runner](https://github.com/lorenzofox3/zora)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigomir%2Fvite-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzigomir%2Fvite-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigomir%2Fvite-test/lists"}