new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Vitest · Guide · all subjects

concurrent & parameterized tests

9 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

fileParallelism flag enables parallel file execution

The `--fileParallelism` CLI flag enables all test files to run in parallel. Use `--no-file-parallelism` to disable. Default is `true`.

maxWorkers flag limits concurrent workers

The `--maxWorkers <workers>` CLI flag specifies the maximum number or percentage of workers to run tests in.

sequence.shuffle.files flag randomizes file order

The `--sequence.shuffle.files` CLI flag runs files in a random order. Long running tests will not start earlier if enabled. Default is `false`.

sequence.shuffle.tests flag randomizes test order

The `--sequence.shuffle.tests` CLI flag runs tests in a random order. Default is `false`.

sequence.concurrent flag makes tests parallel

The `--sequence.concurrent` CLI flag makes tests run in parallel. Default is `false`.

sequence.seed flag sets randomization seed

The `--sequence.seed <seed>` CLI flag sets the randomization seed. This has no effect if `--sequence.shuffle` is falsy.

maxConcurrency flag limits concurrent execution

The `--maxConcurrency <number>` CLI flag sets the maximum number of concurrent tests and suites during test file execution. Default is `5`.

test.sequential and describe.sequential removed

Vitest 5.0 removes deprecated test.sequential, describe.sequential, and sequential option. Use concurrent: false instead. Example: test('example', { concurrent: false }, async () => {}) or describe('suite', { concurrent: false }, () => {}).

Vitest default parallel execution

Vitest runs tests in parallel by default, while Mocha runs sequentially. This is a key difference when migrating from Mocha.

Give your agent this brain