{"id":18773734,"url":"https://github.com/janumedia/vue-typescript-cypress-example","last_synced_at":"2025-12-14T00:30:17.344Z","repository":{"id":39077354,"uuid":"275088009","full_name":"janumedia/vue-typescript-cypress-example","owner":"janumedia","description":"Vue - Typescript Unit and E2E testing including Code Coverage using Cypress setup example","archived":false,"fork":false,"pushed_at":"2022-12-13T04:05:35.000Z","size":1537,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T08:41:39.231Z","etag":null,"topics":["boilerplate","code-coverage","cypress-io","e2e-testing","typescript","unit-testing","vue"],"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/janumedia.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-06-26T06:22:28.000Z","updated_at":"2022-01-26T14:29:43.000Z","dependencies_parsed_at":"2023-01-28T06:31:17.781Z","dependency_job_id":null,"html_url":"https://github.com/janumedia/vue-typescript-cypress-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janumedia%2Fvue-typescript-cypress-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janumedia%2Fvue-typescript-cypress-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janumedia%2Fvue-typescript-cypress-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janumedia%2Fvue-typescript-cypress-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janumedia","download_url":"https://codeload.github.com/janumedia/vue-typescript-cypress-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239680983,"owners_count":19679509,"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":["boilerplate","code-coverage","cypress-io","e2e-testing","typescript","unit-testing","vue"],"created_at":"2024-11-07T19:35:17.620Z","updated_at":"2025-12-14T00:30:17.285Z","avatar_url":"https://github.com/janumedia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-typescript-cypress-example\nVue - Typescript Unit and E2E Testing including Code Coverage using Cypress setup example\n\n## Vue-Cli\nThis project started using `@vue/cli 4.4.5`\n### Manual selection\nBabel\nTypscript\nCSS Pre-processors\nLinter / Formatter\nE2E Testing \u003e Cypress\n\n## Depedencies\nInstall the following devDepedencies:\n```\n@cypress/code-coverage\n@cypress/webpack-preprocessor\nfind-webpack\nbabel-loader\nbabel-plugin-istanbul\n@vue/test-utils\n```\n\n## Cypress Setup\n1. Edit plugins located at `tests/e2e/plugins/index.js`\n    a. Get webpackOptions\n    ```\n    const webpackPreprocessor = require(\"@cypress/webpack-preprocessor\");\n    const webpackOptions = require(\"find-webpack\").getWebpackOptions();\n    ```\n    b. Setup `file:preprocessor`\n    ```\n    on(\n        \"file:preprocessor\",\n        webpackPreprocessor({ webpackOptions })\n    );\n    ```\n2. Setup Code Coverage task in plugins file\n    ```\n    require(\"@cypress/code-coverage/task\")(on, config);\n    ```\n3. Edit Code Coverage task to Cypress support located at `tests/e2e/support/index.js`\n    ```\n    import \"@cypress/code-coverage/support\";\n    ```\n4. Add `istanbul` to Babel plugins\n    ```\n    plugins: [\"istanbul\"]\n    ```\n5. Setup `nyc` target extension\n    ```\n    {\n        \"extension\": [ \".js\", \".vue\" ]\n    }\n    ```\n6. Create your test specs\n7. Run test\n    ```\n    yarn test:e2e\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanumedia%2Fvue-typescript-cypress-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanumedia%2Fvue-typescript-cypress-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanumedia%2Fvue-typescript-cypress-example/lists"}