{"id":17013769,"url":"https://github.com/dnlup/vue-cli-plugin-unit-ava","last_synced_at":"2025-03-22T16:31:08.010Z","repository":{"id":34304397,"uuid":"175852606","full_name":"dnlup/vue-cli-plugin-unit-ava","owner":"dnlup","description":"@vue/cli plugin to run unit tests with ava","archived":false,"fork":false,"pushed_at":"2022-12-10T16:58:05.000Z","size":3984,"stargazers_count":5,"open_issues_count":31,"forks_count":0,"subscribers_count":2,"default_branch":"next","last_synced_at":"2025-03-16T16:44:21.485Z","etag":null,"topics":["ava","cli-plugin","testing","tests","unit","vue","vue-cli","vue-cli-3","vue-cli-plugin","vuejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dnlup.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}},"created_at":"2019-03-15T16:09:45.000Z","updated_at":"2021-06-29T06:56:35.000Z","dependencies_parsed_at":"2023-01-15T06:09:54.240Z","dependency_job_id":null,"html_url":"https://github.com/dnlup/vue-cli-plugin-unit-ava","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlup%2Fvue-cli-plugin-unit-ava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlup%2Fvue-cli-plugin-unit-ava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlup%2Fvue-cli-plugin-unit-ava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlup%2Fvue-cli-plugin-unit-ava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnlup","download_url":"https://codeload.github.com/dnlup/vue-cli-plugin-unit-ava/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244986498,"owners_count":20543023,"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":["ava","cli-plugin","testing","tests","unit","vue","vue-cli","vue-cli-3","vue-cli-plugin","vuejs"],"created_at":"2024-10-14T06:14:09.675Z","updated_at":"2025-03-22T16:31:07.265Z","avatar_url":"https://github.com/dnlup.png","language":"JavaScript","readme":"[![npm version](https://badge.fury.io/js/%40dnlup%2Fvue-cli-plugin-unit-ava.svg)](https://badge.fury.io/js/%40dnlup%2Fvue-cli-plugin-unit-ava)\n[![Build Status](https://travis-ci.com/dnlup/vue-cli-plugin-unit-ava.svg?token=zu3SxXGFaq3y1hcTQfC6\u0026branch=master)](https://travis-ci.com/dnlup/vue-cli-plugin-unit-ava) [![Greenkeeper badge](https://badges.greenkeeper.io/dnlup/vue-cli-plugin-unit-ava.svg?token=afd39f2e241ccb41748b27d5b16c32d4a8922b23319dbd178352c5a12aa4c967\u0026ts=1552668377939)](https://greenkeeper.io/)\n[![Maintainability](https://api.codeclimate.com/v1/badges/24a9748c22097d1f5cf8/maintainability)](https://codeclimate.com/github/dnlup/vue-cli-plugin-unit-ava/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/24a9748c22097d1f5cf8/test_coverage)](https://codeclimate.com/github/dnlup/vue-cli-plugin-unit-ava/test_coverage)\n\n\u003cimg src=\"ava.png\" height=60\u003e\n\n# @dnlup/vue-cli-plugin-unit-ava\n\n\u003e unit-ava plugin for vue-cli\n\n\n## Table of contents\n* [Injected commands](#injected-commands)\n* [Installing in an Already Created Project](#installing-in-an-already-created-project)\n* [Contributing](#contributing)\n\n### Injected commands\n\n- **`vue-cli-service test:unit`**\n\n  Run unit tests with [ava](https://github.com/avajs/ava)\n\n  **Note the tests are run inside Node.js with browser environment simulated with [browser-env](https://github.com/lukechilds/browser-env).**\n\n  ```\n  Usage: vue-cli-service test:unit [options] [\u003cfile|directory|glob\u003e ...]\n\n  Options:\n\n    --watch, -w              Re-run tests when tests and source files change\n    --match, -m              Only run tests with matching title (Can be repeated)\n    --update-snapshots, -u   Update snapshots\n    --fail-fast              Stop after first test failure\n    --timeout, -T            Set global timeout\n    --serial, -s             Run tests serially\n    --concurrency, -c        Max number of test files running at the same time (Default: CPU cores)\n    --verbose, -v            Enable verbose output\n    --tap, -t                Generate TAP output\n    --color                  Force color output\n    --no-color               Disable color output\n  ```\n\n  Default files matches are: any files in `tests/unit` that end in `.spec.(ts|js)`.\n\n  All [command line options](https://github.com/avajs/ava/blob/master/docs/05-command-line.md) are supported.\n\n### Installing in an Already Created Project\n\n```bash\n$ vue add @dnlup/unit-ava\n```\n\n#### Prompts\n![prompt_1](./assets/prompt_1.png)\n\nWill merge or create a new configuration in the selected destination. It will fail if the project is already configured in the destination **not** selected.\n\n![prompt_2](./assets/prompt_2.png)\n\nWill add support for a specific UI Framework. It currently supports only the latest version of [Vuetify](https://vuetifyjs.com/en/).\n\n![prompt_3](./assets/prompt_3.png)\n\nWill ask if you want to add style loaders.\n\n### Contributing\n\n* Make your changes\n* Test them with `npm test`\n* Add them\n  ```bash\n  $ git add \u003cyour files\u003e\n  ```\n* Commit (uses [commitizen](https://github.com/commitizen/cz-cli))\n  ```bash\n  $ git commit\n  ```\n\n#### Note\nTests now are a bit heavy because I am actually creating a considerable amount of projects in parallel to test different configurations.\nAll configurations cannot be tested, it would be too expensive.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnlup%2Fvue-cli-plugin-unit-ava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnlup%2Fvue-cli-plugin-unit-ava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnlup%2Fvue-cli-plugin-unit-ava/lists"}