Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vitest-dev/vitest
/ functions
Functions
7,873 in github.com/vitest-dev/vitest
⨍
Functions
7,873
◇
Types & classes
1,212
↓ 3 callers
Function
Wf
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
Wf
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
Xd
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
Xd
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
Xf
(n,i,a,l)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
Xf
(n,i,a,l)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
Xh
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
Xh
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
Yf
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
Yf
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
Yh
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
Yh
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
Zf
(n,i,a,l)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
Zf
(n,i,a,l)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
Zt
(n)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
Zt
(n)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
_e
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
_e
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
_f
(n)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
_f
(n)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
_h
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:44
↓ 3 callers
Function
_h
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:44
↓ 3 callers
Method
_initialize
(ctx: Vitest)
packages/vitest/src/node/coverage.ts:91
↓ 3 callers
Function
_p
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:44
↓ 3 callers
Function
_p
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:44
↓ 3 callers
Method
_setHash
()
packages/vitest/src/node/project.ts:537
↓ 3 callers
Method
active
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 3 callers
Function
ad
(n,i,a,l,u)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:33
↓ 3 callers
Function
ad
(n,i,a,l,u)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:33
↓ 3 callers
Function
add
(...args: number[])
examples/in-source-test/src/index.ts:2
↓ 3 callers
Method
add
(result: SnapshotResult)
packages/snapshot/src/manager.ts:22
↓ 3 callers
Function
addCliOptions
(cli: CAC | Command, options: CLIOptionsConfig<any>)
packages/vitest/src/node/cli/cac.ts:69
↓ 3 callers
Method
and
* Returns a locator that matches both the current locator and the provided locator. * @see {@link https://vitest.dev/api/browser/locators#and}
packages/browser/context.d.ts:719
↓ 3 callers
Function
ap
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
ap
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
assert
(condition: any, message: string)
packages/runner/src/suite.ts:192
↓ 3 callers
Function
assertGlobalExists
(name: string)
packages/web-worker/src/utils.ts:14
↓ 3 callers
Function
assertSequential
()
test/core/test/sequential.test.ts:5
↓ 3 callers
Function
bd
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
bd
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
bf
(n,i,a,l)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
bf
(n,i,a,l)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
bp
(e,t,r)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:44
↓ 3 callers
Function
bp
(e,t,r)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:44
↓ 3 callers
Function
branch
(a: number)
test/coverage-test/fixtures/src/branch.ts:1
↓ 3 callers
Function
bumpSync
()
test/core/test/execution-order.test.ts:5
↓ 3 callers
Function
c
()
test/cli/fixtures/stacktraces/error-with-stack.test.js:15
↓ 3 callers
Function
calculateSuiteHash
(parent: Suite)
packages/runner/src/utils/collect.ts:187
↓ 3 callers
Function
calculator
(_action: string, _a: number, _b: number)
test/browser/fixtures/mocking/src/mocks_factory.ts:1
↓ 3 callers
Function
callFixtureCleanup
(context: object)
packages/runner/src/fixture.ts:245
↓ 3 callers
Function
canWrite
(project: TestProject)
packages/browser/src/node/rpc.ts:125
↓ 3 callers
Method
cancel
()
packages/vitest/src/node/pools/browser.ts:214
↓ 3 callers
Function
captureStdout
()
test/coverage-test/utils.ts:152
↓ 3 callers
Function
checkSequentialTests
()
test/core/test/concurrent-suite.test.ts:133
↓ 3 callers
Function
circularA
()
test/coverage-test/fixtures/src/circularA.ts:5
↓ 3 callers
Function
cleanOutput
(output: string)
test/config/test/chai-config.test.ts:75
↓ 3 callers
Method
cleanup
()
packages/vitest/src/node/logger.ts:336
↓ 3 callers
Function
clear
()
packages/runner/src/run.ts:296
↓ 3 callers
Method
clearErrors
()
packages/vitest/src/node/state.ts:90
↓ 3 callers
Function
collectModuleExports
( filename: string, code: string, format: 'module' | 'commonjs', exports: string[] = [], )
packages/mocker/src/node/parsers.ts:33
↓ 3 callers
Function
compareObjects
( a: Record<string, any>, b: Record<string, any>, options?: DiffOptions, memorize: Memorize = DEFAULT_
packages/utils/src/diff/index.ts:176
↓ 3 callers
Function
cp
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
cp
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
createAssertionMessage
( util: Chai.ChaiUtils, assertion: Chai.Assertion, hasArgs: boolean, )
packages/expect/src/utils.ts:6
↓ 3 callers
Function
createCLI
(options: CliParseOptions = {})
packages/vitest/src/node/cli/cac.ts:77
↓ 3 callers
Function
createFailedFileTask
(project: TestProject, filepath: string, error: Error)
packages/vitest/src/node/ast-collect.ts:287
↓ 3 callers
Function
createIndexLocationsMap
(source: string)
packages/vitest/src/utils/base.ts:44
↓ 3 callers
Function
createProject
(connectTimeout = 100)
test/core/test/browser-sessions.test.ts:5
↓ 3 callers
Function
createSyntaxError
(node: Positioned<Node>, message: string)
packages/mocker/src/node/hoistMocks.ts:194
↓ 3 callers
Function
createTest
( fn: ( this: InternalTestContext, title: string, optionsOrFn?: TestOptions | TestFunction,
packages/runner/src/suite.ts:978
↓ 3 callers
Function
createTest
(fileName: string)
test/cli/test/get-state.test.ts:35
↓ 3 callers
Function
createViteLogger
( console: VitestLogger, level: LogLevel = 'info', options: LoggerOptions = {}, )
packages/vitest/src/node/viteLogger.ts:38
↓ 3 callers
Function
createViteServer
(inlineConfig: InlineConfig)
packages/vitest/src/node/vite.ts:5
↓ 3 callers
Function
customFilePlugin
(postfix: "1" | "2")
test/coverage-test/fixtures/configs/vitest.config.multi-transforms.ts:40
↓ 3 callers
Function
deduped
(cb: T)
packages/vitest/src/node/project.ts:743
↓ 3 callers
Function
deepMergeSnapshot
(target: any, source: any)
packages/snapshot/src/port/utils.ts:211
↓ 3 callers
Function
defineBrowserProvider
(options: Omit< BrowserProviderOption<T>, 'serverFactory' | 'options' > & { options?: T })
packages/browser/src/node/index.ts:112
↓ 3 callers
Function
defineExport
(exports: any, key: string | symbol, value: () => any)
packages/vitest/src/runtime/moduleRunner/moduleEvaluator.ts:511
↓ 3 callers
Function
detectCodeBlock
(content: string)
packages/vitest/src/utils/test-helpers.ts:50
↓ 3 callers
Function
diffStringsUnified
( a: string, b: string, options?: DiffOptions, )
packages/utils/src/diff/printDiffs.ts:30
↓ 3 callers
Method
doSomething
()
test/core/test/mocking/automocking-class-inheritance.test.ts:46
↓ 3 callers
Function
dp
(e,t=!0,r)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
dp
(e,t=!0,r)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 3 callers
Method
dropTo
* Drags the current element to the target location. * @see {@link https://vitest.dev/api/browser/interactivity#userevent-dropto}
packages/browser/context.d.ts:637
↓ 3 callers
Function
ed
(n,i,a)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:29
↓ 3 callers
Function
ed
(n,i,a)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:29
↓ 3 callers
Function
editTestFile
(method: 'sum' | 'subtract' | 'multiply' | 'remainder')
test/coverage-test/test/clean-on-rerun.test.ts:159
↓ 3 callers
Method
ensureCDPHandler
(sessionId: string, rpcId: string)
packages/browser/src/node/projectParent.ts:179
↓ 3 callers
Method
ensureModule
(id: string, url: string)
packages/vitest/src/runtime/moduleRunner/moduleMocker.ts:77
↓ 3 callers
Function
ep
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
ep
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
escapeHtml
(unsafe: string)
packages/ui/client/utils/escape.ts:1
↓ 3 callers
Function
escapeRegExp
(s: string)
packages/snapshot/src/port/inlineSnapshot.ts:55
↓ 3 callers
Method
experimental_parseSpecification
(specification: TestSpecification)
packages/vitest/src/node/core.ts:1084
↓ 3 callers
Method
experimental_parseSpecifications
(specifications: TestSpecification[], options?: { /** @default os.availableParallelism() */ concurrenc
packages/vitest/src/node/core.ts:1039
↓ 3 callers
Function
extractSourcemapFromFile
( code: string, filePath: string, )
packages/utils/src/source-map/node.ts:11
↓ 3 callers
Method
f
()
test/core/test/jest-mock.test.ts:648
↓ 3 callers
Function
fd
(e,t="")
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:5
↓ 3 callers
Function
fd
(e,t="")
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:5
↓ 3 callers
Method
fetch
( trace: Span, url: string, importer: string | undefined, environment: DevEnvironment, mak
packages/vitest/src/node/environments/fetchModule.ts:33
← previous
next →
1,601–1,700 of 7,873, ranked by callers