vitest-dev/vitest
Documented errors, page 4 of 4. Back to vitest-dev/vitest
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| expected function to throw an error, but it didn't | exception | error | expect, to-throw, assertion, jest-expect |
| "postMessage" requires at least one argument. | exception | error | web-worker, postmessage, validation |
| Projects " " and " " have different 'maxWorkers' but same… | exception | error | sequencing, max-workers, grouping, multi-project |
| Snapshot cannot be used outside of test | exception | error | snapshot, lifecycle, filepath |
| is not a spy or a call to a spy | validation | error | expect, mock, spy, call-order, jest-expect |
| Browser Mode was enabled, but provider was not specified… | exception | error | browser, provider, config |
| The worker thread was torn down or never initialized. This… | exception | error | internal-bug, worker-pool, threads, lifecycle, race |
| Can't find browser origin URL for project | exception | error | browser, vite-server, urls, initialization |
| Method "getByAltText" is not supported by the | exception | error | browser, locators, provider, preview |
| You must provide an object to | validation | error | expect, asymmetric-matcher, type-error |
| Method "getByText" is not supported by the | exception | error | browser, locators, provider, preview |
| Blob reporter is not supported in watch mode | exception | error | reporter, blob, watch |
| invalid export in globalSetup file | exception | error | global-setup, exports, type-validation |
| pretty-format: Plugin must return type "string" but instead… | exception | error | pretty-format, plugin, contract |
| Invalid tags expression: unexpected end of expression in | exception | error | cli, tags, parser, validation |
| Async schema validation is not supported in asymmetric… | validation | error | expect, schema, async, asymmetric-matcher |
| Browser " " is not supported by the browser provider " "… | exception | error | browser, config, provider |
| expect.soft() can only be used inside a test | exception | error | expect, soft-assertion, test-context, lifecycle |
| the blobs in " " were generated by a different version of… | exception | error | reporter, blob, merge, version |
| vitest.mergeReports() expects all paths in | exception | error | reporter, blob, merge |
| Something removed the coverage directory | exception | error | coverage, istanbul, filesystem, concurrency |
| any() expects to be passed a constructor function. Please… | validation | error | expect, asymmetric-matcher, type-error |
| Expected is not a string | validation | error | expect, asymmetric-matcher, type-error |
| --shard must be a smaller than count of test files… | exception | error | sharding, test-files, parallelism |
| Switch context is only available for WebDriverIO provider. | exception | error | webdriverio, browser-provider, capability, context-switch, browser |
| Task was not found | exception | error | watcher, rerun, task-lookup |
| vi.unmock() expects a string path, but received a | exception | error | vi-unmock, hoisting, type-error, module-path |
| expects the expected value to be a benchmark result. | exception | error | bench, matcher, type-validation |
| [vitest] Unknown mock type | exception | error | vitest, mocker, internal, invariant |
| You must provide an array to | validation | error | expect, asymmetric-matcher, type-error |
| Tag name " " is invalid. Tag names cannot be a logical… | exception | error | config, tags, validation, filter-expression, reserved-word |
| --cache.dir is deprecated | exception | error | cli, config, cache, deprecation, vitest-4, migration |
| The browser configuration must have a "browser" property… | exception | error | browser, config, instances, validation |
| Failed to update coverage thresholds. Configuration file is… | exception | error | coverage, thresholds, config-structure |
| Method "getByPlaceholder" is not supported by the | exception | error | browser, locators, provider, preview |
| Session " " not found. | exception | error | cdp, session, browser, debugging, lifecycle |
| You must provide an array or set to | validation | error | expect, matcher, type-error |
| CDP is not supported by the provider | exception | error | cdp, browser-provider, capability, browser |
| You must provide a Promise to expect() when using .rejects… | validation | error | expect, rejects, promise, type-error, jest-expect |
| expect.poll() is not supported in combination with .rejects | validation | error | expect, poll, rejects, syntax, jest-expect |
| toContain() expected a DOM node as the argument, but got | validation | error | expect, matcher, dom, type-error |
| --shard must be a positive number less then | exception | error | cli, shard, validation, ci |
| Custom reporter loaded from | exception | error | reporter, config, esm |
| .toMatch() expects to receive a string, but got | validation | error | expect, matcher, type-error |
| Method "getByTitle" is not supported by the | exception | error | browser, locators, provider, preview |
| Raw snapshot is required | exception | error | snapshot, raw, validation |
| Tag name " " is invalid. Tag names cannot contain spaces. | exception | error | config, tags, validation, naming |
| Expected is not a Number | validation | error | expect, asymmetric-matcher, type-error |
| Expected is not a String or a RegExp | validation | error | expect, asymmetric-matcher, type-error |
| Precision is not a Number | validation | error | expect, asymmetric-matcher, type-error |
| vitest.mergeReports() requires at least one blob file in | exception | error | reporter, blob, merge |