[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

docs: update cli docs (#2159)

authored by

Anjorin Damilare and committed by
GitHub
(Oct 19, 2022, 12:29 PM +0200) 17ba76b8 42d7278e

+19 -15
+3
.gitignore
··· 19 19 cypress/videos 20 20 cypress/downloads 21 21 cypress/screenshots 22 + packages/ui/cypress/videos 23 + packages/ui/cypress/downloads 24 + packages/ui/cypress/screenshots 22 25 docs/public/user-avatars 23 26 docs/public/sponsors 24 27 .eslintcache
+6 -7
pnpm-lock.yaml
··· 123 123 unocss: 0.45.29_vite@3.1.0 124 124 unplugin-vue-components: 0.22.8_vue@3.2.41 125 125 vite: 3.1.0 126 - vite-plugin-pwa: 0.13.1_zp7t6aa2r77waajuyr5zt63phe 126 + vite-plugin-pwa: 0.13.1_vite@3.1.0 127 127 vitepress: 1.0.0-alpha.21 128 128 workbox-window: 6.5.4 129 129 ··· 290 290 '@types/react-test-renderer': 17.0.2 291 291 '@vitejs/plugin-react': 2.1.0_vite@3.1.0 292 292 '@vitest/ui': link:../../packages/ui 293 - happy-dom: 7.5.13 293 + happy-dom: 7.5.14 294 294 jsdom: 20.0.1 295 295 react-test-renderer: 17.0.2_react@17.0.2 296 296 vite: 3.1.0 ··· 958 958 devDependencies: 959 959 '@vitejs/plugin-vue': 3.1.2_vite@3.1.0+vue@3.2.41 960 960 '@vue/test-utils': 2.1.0_vue@3.2.41 961 - happy-dom: 7.5.13 961 + happy-dom: 7.5.14 962 962 vite: 3.1.0 963 963 vitest: link:../../packages/vitest 964 964 vue: 3.2.41 ··· 11820 11820 - encoding 11821 11821 dev: true 11822 11822 11823 - /happy-dom/7.5.13: 11824 - resolution: {integrity: sha512-J8OehFPl71FtmkifnxqUpFWHA9jJ5pIwnEAFdZvZnXexev6RIgtkB6H/pTEHhBp7qCGUPHhkjvF3gqKxlBTeLg==} 11823 + /happy-dom/7.5.14: 11824 + resolution: {integrity: sha512-/MXcRnAQSgahOGBQOXr77hJrEpzwEAh9F7P6o7COlUp4o1QwLD/7qQPb55Po3MDeMYQfsEnXfQPT2YXAbKmn2Q==} 11825 11825 dependencies: 11826 11826 css.escape: 1.5.1 11827 11827 he: 1.2.0 ··· 18895 18895 - supports-color 18896 18896 dev: true 18897 18897 18898 - /vite-plugin-pwa/0.13.1_zp7t6aa2r77waajuyr5zt63phe: 18898 + /vite-plugin-pwa/0.13.1_vite@3.1.0: 18899 18899 resolution: {integrity: sha512-NR3dIa+o2hzlzo4lF4Gu0cYvoMjSw2DdRc6Epw1yjmCqWaGuN86WK9JqZie4arNlE1ZuWT3CLiMdiX5wcmmUmg==} 18900 18900 peerDependencies: 18901 18901 vite: ^3.1.0 18902 - workbox-window: ^6.5.4 18903 18902 dependencies: 18904 18903 debug: 4.3.4 18905 18904 fast-glob: 3.2.12
+2
docs/guide/cli.md
··· 76 76 | `--shard <shard>` | Execute tests in a specified shard | 77 77 | `--sequence` | Define in what order to run tests. Use [cac's dot notation] to specify options (for example, use `--sequence.shuffle` to run tests in random order) | 78 78 | `--no-color` | Removes colors from the console output | 79 + | `--inspect` | Enables Node.js inspector | 80 + | `--inspect-brk` | Enables Node.js inspector with break | 79 81 | `-h, --help` | Display available CLI options | 80 82 81 83 ### changed
+1 -1
packages/ui/index.html
··· 21 21 <div id="app"></div> 22 22 <script type="module" src="/client/main.ts"></script> 23 23 </body> 24 - </html> 24 + </html>
+1 -1
packages/ui/client/composables/module-graph.ts
··· 1 1 import type { Graph, GraphConfig, GraphController, GraphLink, GraphNode } from 'd3-graph-controller' 2 2 import { defineGraph, defineLink, defineNode } from 'd3-graph-controller' 3 - import type { ModuleGraphData } from '../../../vitest/src/types' 3 + import type { ModuleGraphData } from 'vitest/src/types' 4 4 5 5 export type ModuleType = 'external' | 'inline' 6 6 export type ModuleNode = GraphNode<ModuleType>
+5 -5
packages/vitest/src/node/cli.ts
··· 71 71 72 72 cli.parse() 73 73 74 - async function runRelated(relatedFiles: string[] | string, argv: CliOptions) { 74 + async function runRelated(relatedFiles: string[] | string, argv: CliOptions): Promise<void> { 75 75 argv.related = relatedFiles 76 76 argv.passWithNoTests ??= true 77 77 await start('test', [], argv) 78 78 } 79 79 80 - async function watch(cliFilters: string[], options: CliOptions) { 80 + async function watch(cliFilters: string[], options: CliOptions): Promise<void> { 81 81 options.watch = true 82 82 await start('test', cliFilters, options) 83 83 } 84 84 85 - async function run(cliFilters: string[], options: CliOptions) { 85 + async function run(cliFilters: string[], options: CliOptions): Promise<void> { 86 86 options.run = true 87 87 await start('test', cliFilters, options) 88 88 } 89 89 90 - async function benchmark(cliFilters: string[], options: CliOptions) { 90 + async function benchmark(cliFilters: string[], options: CliOptions): Promise<void> { 91 91 console.warn(c.yellow('Benchmarking is an experimental feature.\nBreaking changes might not follow semver, please pin Vitest\'s version when using it.')) 92 92 await start('benchmark', cliFilters, options) 93 93 } 94 94 95 - async function start(mode: VitestRunMode, cliFilters: string[], options: CliOptions) { 95 + async function start(mode: VitestRunMode, cliFilters: string[], options: CliOptions): Promise<void> { 96 96 try { 97 97 if (await startVitest(mode, cliFilters, options) === false) 98 98 process.exit()
+1 -1
packages/ui/client/components/dashboard/DashboardEntry.vue
··· 12 12 <slot name="header" /> 13 13 </div> 14 14 </div> 15 - <!-- 15 + <!-- 16 16 <div v-if="!tail" data-testid="tail" my-0 op50 w-2px bg-current origin-center rotate-0 translate-x-3 /> 17 17 --> 18 18 </div>