MCPcopy Create free account

hub / github.com/vitest-dev/vitest / functions

Functions7,873 in github.com/vitest-dev/vitest

↓ 34 callersMethodmethod
(..._args: any[])
test/core/test/mocking/vi-mockObject.test.ts:231
↓ 34 callersFunctionrun
( structure: Parameters<typeof runInlineTests>[0], customConfig?: TestUserConfig, reporterOptions?: Repo
test/cli/test/reporters/test-run.test.ts:1116
↓ 34 callersFunctionxe
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 34 callersFunctionxe
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 33 callersFunctionW
(Z,G)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 33 callersFunctionW
(Z,G)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 33 callersMethoduseRealTimers
()
packages/vitest/src/integrations/mock/timers.ts:134
↓ 32 callersFunctionL
(D,q,Q,he=null,de=null,ge=null,Ce=void 0,Ee=null,xe=!!q.dynamicChildren)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 32 callersFunctionL
(D,q,Q,he=null,de=null,ge=null,Ce=void 0,Ee=null,xe=!!q.dynamicChildren)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 32 callersFunctionb
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 32 callersFunctionb
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 32 callersMethodclose
()
test/browser/specs/playwright-trace-mark.test.ts:373
↓ 32 callersFunctiong
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 32 callersFunctionp
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 32 callersFunctionp
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 32 callersFunctionprocessError
( _err: any, diffOptions?: DiffOptions, seen: WeakSet<WeakKey> = new WeakSet(), )
packages/utils/src/error.ts:9
↓ 32 callersFunctionrunVitest
(config: RunVitestConfig, runnerOptions?: VitestRunnerCLIOptions)
test/config/test/failures.test.ts:18
↓ 32 callersFunctiontestTree
(module: TestModule | TestSuite, tree: any = {}, fnFn?: boolean)
test/cli/test/static-collect.test.ts:1691
↓ 32 callersMethodtoBeChecked
* @description * Assert whether the given element is checked. * * It accepts an `input` of type `checkbox` or `radio` and elements with a `ro
packages/browser/jest-dom.d.ts:447
↓ 31 callersFunctiong
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 31 callersMethodmockRestore
* Does what `mockReset` does and restores original descriptors of spied-on objects. * @see https://vitest.dev/api/mock#mockrestore
packages/spy/src/types.ts:247
↓ 31 callersFunctionmt
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 31 callersFunctionmt
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 31 callersMethodtoContainHTML
* @description * Assert whether a string representing a HTML element is contained in another element. * @example * <span data-testid="parent"
packages/browser/jest-dom.d.ts:221
↓ 30 callersFunctionP
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 30 callersFunctionP
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 30 callersFunctioncreateDefer
()
packages/utils/src/helpers.ts:283
↓ 30 callersFunctionwt
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:5
↓ 30 callersFunctionwt
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:5
↓ 30 callersFunctionxt
(e,t,r)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 30 callersFunctionxt
(e,t,r)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 29 callersFunction$
(D,q,Q,he,de,ge,Ce,Ee,xe)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 29 callersMethodfindElement
* This method returns an element matching the locator. * Unlike [`.element()`](https://vitest.dev/api/browser/locators#element), * this method w
packages/browser/context.d.ts:743
↓ 29 callersFunctionkt
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:5
↓ 29 callersFunctionkt
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:5
↓ 29 callersFunctionnormalize
(text: string)
packages/browser/src/client/tester/expect/utils.ts:278
↓ 29 callersMethodtoBeDisabled
* @description * Allows you to check whether an element is disabled from the user's perspective. * * Matches if the element is a form control
packages/browser/jest-dom.d.ts:121
↓ 29 callersMethodtriggerCommand
( command: string, args: any[], // error makes sure the stack trace is correct on webkit, // i
packages/browser/src/client/tester/tester-utils.ts:122
↓ 28 callersFunction_
({el:D,anchor:q})
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 28 callersFunction_
({el:D,anchor:q})
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 28 callersFunctiononCleanup
(fn: () => any)
packages/runner/src/suite.ts:890
↓ 28 callersMethodtoHaveAccessibleDescription
* @description * This allows to assert that an element has the expected [accessible description](https://w3c.github.io/accname/). * * You can
packages/browser/jest-dom.d.ts:472
↓ 27 callersFunctioncreateObject
()
test/core/test/mocking/vi-spyOn.test.ts:761
↓ 27 callersFunctionfetch
( url, importer, environmentName, options, otelCarrier, )
packages/vitest/src/node/pools/rpc.ts:30
↓ 27 callersMethodtoHaveAccessibleErrorMessage
* @description * This allows you to assert that an element has the expected * [accessible error message](https://w3c.github.io/aria/#aria-errorm
packages/browser/jest-dom.d.ts:511
↓ 27 callersFunctionz
(B,ce)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 27 callersFunctionz
(B,ce)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 26 callersFunctiongetElementFromUserInput
( elementOrLocator: Element | Locator | null, // TODO: minifier doesn't keep names, so we need to update t
packages/browser/src/client/tester/expect/utils.ts:36
↓ 26 callersMethodgetRootProject
* Return project that has the root (or "global") config.
packages/vitest/src/node/core.ts:499
↓ 26 callersMethodmockClear
* Clears all information about every call. After calling it, all properties on `.mock` will return to their initial state. This method does not reset
packages/spy/src/types.ts:232
↓ 26 callersMethodtoContainElement
* @description * Allows you to assert whether an element contains another element as a descendant or not. * @example * <span data-testid="anc
packages/browser/jest-dom.d.ts:210
↓ 25 callersFunctionMt
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 25 callersFunctionMt
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 25 callersMethodhover
* Moves the cursor position to the selected element * @see {@link https://vitest.dev/api/browser/interactivity#userevent-hover}
packages/browser/context.d.ts:622
↓ 25 callersMethodtoBeEnabled
* @description * Allows you to check whether an element is not disabled from the user's perspective. * * Works like `not.toBeDisabled()`.
packages/browser/jest-dom.d.ts:140
↓ 25 callersMethodtoHaveDisplayValue
* @description * This allows you to check whether the given form element has the specified displayed value (the one the * end user will see). It
packages/browser/jest-dom.d.ts:321
↓ 24 callersFunctionEt
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 24 callersFunctionEt
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 24 callersFunctioncallback
()
test/core/test/fixtures/timers.suite.ts:912
↓ 24 callersMethodgetMockImplementation
* Returns current permanent mock implementation if there is one. * * If mock was created with `vi.fn`, it will consider passed down method as a
packages/spy/src/types.ts:255
↓ 24 callersFunctionreadFile
({ project }, path, options = {})
packages/browser/src/node/commands/fs.ts:10
↓ 24 callersFunctionrunNoViteModuleRunnerTests
(structure: TestFsStructure, vitestConfig?: RunVitestConfig, options?: VitestRunnerCLIOptions)
test/cli/test/no-module-runner.test.ts:754
↓ 24 callersMethodtoBeInvalid
* @description * Check if a form element, or the entire `form`, is currently invalid. * * An `input`, `select`, `textarea`, or `form` element
packages/browser/jest-dom.d.ts:158
↓ 24 callersMethodtoBeValid
* @description * Allows you to check if a form element is currently required. * * An `input`, `select`, `textarea`, or `form` element is inva
packages/browser/jest-dom.d.ts:193
↓ 24 callersMethodtoHaveSelection
* @description * This allows to assert that an element has a * [text selection](https://developer.mozilla.org/en-US/docs/Web/API/Selection).
packages/browser/jest-dom.d.ts:676
↓ 24 callersFunctionv
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 24 callersFunctionv
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 24 callersFunctionw
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 24 callersFunctionw
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 23 callersFunctionDt
(e,t,r={},o,s)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 23 callersFunctionDt
(e,t,r={},o,s)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 23 callersFunctionHt
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:5
↓ 23 callersFunctionHt
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:5
↓ 23 callersMethodadvanceTimersByTime
(msToRun: number)
packages/vitest/src/integrations/mock/timers.ts:110
↓ 23 callersMethodnext
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 23 callersFunctionstringify
( object: unknown, maxDepth = 10, { maxLength, filterNode, ...options }: StringifyOptions = {}, )
packages/utils/src/display.ts:49
↓ 23 callersFunctionvitest
(cliOptions: TestUserConfig, configValue: TestUserConfig = {}, viteConfig: ViteUserConfig = {}, vitestOptions:
test/cli/test/config/browser-configs.test.ts:12
↓ 22 callersFunctionFt
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 22 callersFunctionFt
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 22 callersFunctionH
(pe,we,Te)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:23
↓ 22 callersFunctionH
(pe,we,Te)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:23
↓ 22 callersFunctionassertTypes
( value: unknown, name: string, types: string[], )
packages/utils/src/helpers.ts:39
↓ 22 callersFunctioncounterTest
(c: number)
test/core/test/modes.test.ts:43
↓ 22 callersMethodmockReturnValueOnce
* Accepts a value that will be returned whenever the mock function is called. TypeScript will only accept values that match the return type of the ori
packages/spy/src/types.ts:322
↓ 22 callersMethodon
(event: string, callback: (arg: any) => void)
test/cli/fixtures/custom-pool/pool/custom-pool.ts:38
↓ 22 callersFunctionreject
()
test/core/test/snapshot-async.test.ts:6
↓ 22 callersMethodresolve
(value: unknown)
packages/vitest/src/node/pools/poolRunner.ts:401
↓ 22 callersFunctiontest
packages/snapshot/src/port/mockSerializer.ts:47
↓ 22 callersFunctionzt
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:5
↓ 22 callersFunctionzt
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:5
↓ 21 callersFunctionZ
(D,q,Q,he,de,ge,Ce)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 21 callersFunctionZ
(D,q,Q,he,de,ge,Ce)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 21 callersFunctiondeepClone
( val: T, options: CloneOptions = defaultCloneOptions, )
packages/utils/src/helpers.ts:193
↓ 21 callersFunctionensureAwaited
(promise: (error?: Error) => Promise<T>)
packages/browser/src/client/utils.ts:32
↓ 21 callersFunctionexpectReplaceAsymmetricMatcher
(actual: any, expected: any)
test/core/test/replace-matcher.test.ts:5
↓ 21 callersMethodgetFiles
(t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 21 callersFunctionj
(D,q,Q,he,de)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 21 callersFunctionj
(D,q,Q,he,de)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 21 callersMethodlocator
(selector: string)
packages/browser-preview/src/locators.ts:91
↓ 21 callersFunctionnormalizeURL
(importMetaURL: string)
test/coverage-test/utils.ts:148
← previousnext →201–300 of 7,873, ranked by callers