Skip to content

Commit 5a7275f

Browse files
chore: fix typos in docs and comments (#9527)
1 parent 328eb79 commit 5a7275f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/api/advanced/runner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface VitestRunner {
4141
*/
4242
onAfterTryTask?: (test: Test, options: { retry: number; repeats: number }) => unknown
4343
/**
44-
* Called after the retry resolution happend. Unlike `onAfterTryTask`, the test now has a new state.
44+
* Called after the retry resolution happened. Unlike `onAfterTryTask`, the test now has a new state.
4545
* All `after` hooks were also called by this point.
4646
*/
4747
onAfterRetryTask?: (test: Test, options: { retry: number; repeats: number }) => unknown

docs/guide/parallelism.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ By default, Vitest runs _test files_ in parallel. Depending on the specified `po
1212
- `forks` (the default) and `vmForks` run tests in different [child processes](https://nodejs.org/api/child_process.html)
1313
- `threads` and `vmThreads` run tests in different [worker threads](https://nodejs.org/api/worker_threads.html)
1414

15-
Both "child processes" and "worker threads" are refered to as "workers". You can configure the number of running workers with [`maxWorkers`](/config/#maxworkers) option.
15+
Both "child processes" and "worker threads" are referred to as "workers". You can configure the number of running workers with [`maxWorkers`](/config/#maxworkers) option.
1616

1717
If you have a lot of tests, it is usually faster to run them in parallel, but it also depends on the project, the environment and [isolation](/config/#isolate) state. To disable file parallelisation, you can set [`fileParallelism`](/config/#fileparallelism) to `false`. To learn more about possible performance improvements, read the [Performance Guide](/guide/improving-performance).
1818

packages/runner/src/types/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export interface VitestRunner {
139139
options: { retry: number; repeats: number },
140140
) => unknown
141141
/**
142-
* Called after the retry resolution happend. Unlike `onAfterTryTask`, the test now has a new state.
142+
* Called after the retry resolution happened. Unlike `onAfterTryTask`, the test now has a new state.
143143
* All `after` hooks were also called by this point.
144144
*/
145145
onAfterRetryTask?: (

packages/vitest/src/node/module-diagnostic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { StateManager } from './state'
1313
import { originalPositionFor, TraceMap } from '@jridgewell/trace-mapping'
1414
import { createIndexLocationsMap } from '../utils/base'
1515

16-
// this function recieves the module diagnostic with the location of imports
16+
// this function receives the module diagnostic with the location of imports
1717
// and populates it with collected import durations; the duration is injected
1818
// only if the current module is the one that imported the module
1919
// if testModule is not defined, then Vitest aggregates durations of ALL collected test modules

0 commit comments

Comments
 (0)