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
Method
findMockRedirect
(mockPath: string, external: string | null)
packages/vitest/src/runtime/moduleRunner/bareModuleMocker.ts:206
↓ 3 callers
Function
findParentScope
( parentStack: _Node[], isVar = false, )
packages/mocker/src/node/esmWalker.ts:373
↓ 3 callers
Function
findTestFileStackTrace
(testFilePath: string, error: string)
packages/runner/src/utils/collect.ts:235
↓ 3 callers
Method
finish
* Write all buffered output and stop buffering. * All intercepted writes are forwarded to actual write after this.
packages/vitest/src/node/reporters/renderers/windowedRenderer.ts:75
↓ 3 callers
Function
finishSendTasksUpdate
(runner: VitestRunner)
packages/runner/src/run.ts:497
↓ 3 callers
Method
flushBuffer
()
packages/vitest/src/node/reporters/renderers/windowedRenderer.ts:95
↓ 3 callers
Method
flushChangeLines
()
packages/utils/src/diff/getAlignedDiffs.ts:147
↓ 3 callers
Method
foo
()
test/core/test/utils.spec.ts:32
↓ 3 callers
Function
format
(type: LogType, msg: string, options: LogErrorOptions = {})
packages/vitest/src/node/viteLogger.ts:50
↓ 3 callers
Function
formatCalls
(spy: MockInstance, msg: string, showActualCall?: any)
packages/expect/src/jest-expect.ts:1218
↓ 3 callers
Function
formatTestPath
(root: string, path: string)
packages/vitest/src/node/reporters/renderers/utils.ts:69
↓ 3 callers
Function
formatTimeString
(date: Date)
packages/vitest/src/node/reporters/renderers/utils.ts:239
↓ 3 callers
Function
formatToken
(token: Token)
packages/runner/src/utils/tags.ts:64
↓ 3 callers
Function
gd
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
gd
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
getCommonMessage
(message: string, options?: DiffOptions)
packages/utils/src/diff/index.ts:32
↓ 3 callers
Function
getCustomEqualityTesters
()
packages/expect/src/jest-matcher-utils.ts:157
↓ 3 callers
Method
getFileContext
(file: File)
packages/runner/src/fixture.ts:104
↓ 3 callers
Function
getFiles
(subDir = '')
test/cli/test/init.test.ts:80
↓ 3 callers
Function
getFullName
(task: Task, separator = ' > ')
packages/runner/src/utils/tasks.ts:76
↓ 3 callers
Method
getFullName
(test: RunnerTask, separator?: string)
test/cli/test/reporters/default.test.ts:283
↓ 3 callers
Function
getId
(listener: Function)
packages/browser/src/client/tester/state.ts:61
↓ 3 callers
Method
getMockContext
()
packages/mocker/src/types.ts:56
↓ 3 callers
Function
getNodeCall
(node: Node)
packages/mocker/src/node/hoistMocks.ts:432
↓ 3 callers
Function
getNodeName
(node: CallExpression)
packages/mocker/src/node/hoistMocks.ts:416
↓ 3 callers
Method
getOTELCarrier
()
packages/vitest/src/node/pools/poolRunner.ts:159
↓ 3 callers
Function
getObjectKeys
(object: object)
packages/expect/src/jest-utils.ts:733
↓ 3 callers
Function
getOutputFile
( config: PotentialConfig | undefined, reporter: BuiltinReporters | BenchmarkBuiltinReporters | 'html', )
packages/vitest/src/utils/config-helpers.ts:10
↓ 3 callers
Method
getProvidedContext
* Get global provided context.
packages/vitest/src/node/core.ts:483
↓ 3 callers
Function
getRequire
()
packages/browser/src/node/plugin.ts:608
↓ 3 callers
Function
getStateSymbol
(task: Task)
packages/vitest/src/node/reporters/renderers/utils.ts:185
↓ 3 callers
Function
getSuites
(suite: Arrayable<Task>)
packages/runner/src/utils/tasks.ts:39
↓ 3 callers
Function
getType
(value: unknown)
packages/utils/src/helpers.ts:166
↓ 3 callers
Function
getUsedProps
(fn: Function, { sourceError, suiteHook }: PropsParserOptions = {})
packages/runner/src/fixture.ts:637
↓ 3 callers
Method
globFiles
@internal
packages/vitest/src/node/project.ts:391
↓ 3 callers
Function
handlePattern
(p: Pattern, parentScope: _Node)
packages/mocker/src/node/esmWalker.ts:89
↓ 3 callers
Function
handleTestError
(test: Test, err: unknown)
packages/expect/src/utils.ts:88
↓ 3 callers
Function
hasKey
(obj: any, key: string)
packages/expect/src/jest-utils.ts:313
↓ 3 callers
Function
hd
(e,t,r)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 3 callers
Function
hd
(e,t,r)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 3 callers
Method
hello
()
test/core/test/fixtures/hello-mock.ts:2
↓ 3 callers
Function
hoistMocks
( code: string, id: string, parse: (code: string) => any, options: HoistMocksOptions = {}, )
packages/mocker/src/node/hoistMocks.ts:84
↓ 3 callers
Function
hp
(e,t,r={})
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
hp
(e,t,r={})
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
id
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:30
↓ 3 callers
Function
id
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:30
↓ 3 callers
Function
ih
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
ih
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 3 callers
Method
importFile
(filepath: string, source: VitestRunnerImportSource)
packages/vitest/src/runtime/runners/test.ts:55
↓ 3 callers
Method
invalidate
()
packages/mocker/src/browser/mocker.ts:51
↓ 3 callers
Function
ip
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
ip
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
isAsymmetric
(obj: any)
packages/expect/src/jest-utils.ts:43
↓ 3 callers
Function
isDataView
(l: unknown)
packages/pretty-format/src/collections.ts:154
↓ 3 callers
Method
isEnabled
()
packages/vitest/src/utils/traces.ts:86
↓ 3 callers
Function
isLocator
(element: unknown)
packages/browser/src/client/tester/tester-utils.ts:280
↓ 3 callers
Function
isMergeableObject
(item: any)
packages/utils/src/helpers.ts:367
↓ 3 callers
Function
isPrimitive
(value: unknown)
packages/utils/src/helpers.ts:53
↓ 3 callers
Method
isRootProject
* Check if this is the root project. The root project is the one that has the root config.
packages/vitest/src/node/project.ts:228
↓ 3 callers
Function
isSlowTestTask
(task: Task)
packages/ui/client/composables/explorer/utils.ts:36
↓ 3 callers
Function
isV8Provider
()
test/coverage-test/utils.ts:136
↓ 3 callers
Function
jd
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 3 callers
Function
jd
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 3 callers
Function
jf
(n)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
jf
(n)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
jh
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 3 callers
Function
jh
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 3 callers
Function
js
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:44
↓ 3 callers
Function
js
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:44
↓ 3 callers
Function
kd
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
kd
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 3 callers
Function
kf
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
kf
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:22
↓ 3 callers
Function
kl
(n)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
kl
(n)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:28
↓ 3 callers
Function
kn
(n)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 3 callers
Function
kn
(n)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 3 callers
Function
kp
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:44
↓ 3 callers
Function
kp
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:44
↓ 3 callers
Function
ld
(n,i,a,l)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:33
↓ 3 callers
Function
ld
(n,i,a,l)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:33
↓ 3 callers
Function
lineNo
(no: number | string = '')
packages/vitest/src/node/printError.ts:504
↓ 3 callers
Function
loadCustomReporterModule
( path: string, runner: ModuleRunner, )
packages/vitest/src/node/reporters/utils.ts:9
↓ 3 callers
Function
mapError
(e: { message: string; diff?: string; stacks?: { file: string; line: number; column: number; method: string }[
test/test-utils/index.ts:578
↓ 3 callers
Function
markTasksAsSkipped
(suite: Suite, runner: VitestRunner)
packages/runner/src/run.ts:812
↓ 3 callers
Function
md
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
md
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
mount
()
test/browser/fixtures/expect-dom/toHaveDisplayValue.test.ts:30
↓ 3 callers
Function
mount
(g,v,b)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
mp
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 3 callers
Function
mp
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 3 callers
Function
nh
(e,t,r)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
nh
(e,t,r)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 3 callers
Function
normalizeArguments
( propertiesOrHint?: object | string, hint?: string, )
packages/vitest/src/integrations/snapshot/chai.ts:230
↓ 3 callers
Function
normalizeId
(id: string)
packages/vitest/src/node/resolver.ts:65
↓ 3 callers
Function
normalizeInlineArguments
( propertiesOrInlineSnapshot?: object | string, inlineSnapshotOrHint?: string, hint?: string, )
packages/vitest/src/integrations/snapshot/chai.ts:241
↓ 3 callers
Function
normalizeNewlines
(string: string)
packages/snapshot/src/port/utils.ts:134
↓ 3 callers
Function
objDisplay
(obj: unknown, options: LoupeOptions = {})
packages/utils/src/display.ts:251
↓ 3 callers
Function
objectAttr
( source: any, path: string, defaultValue = undefined, )
packages/utils/src/helpers.ts:261
↓ 3 callers
Function
oe
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
← previous
next →
1,701–1,800 of 7,873, ranked by callers