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
↓ 6 callers
Function
ls
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:23
↓ 6 callers
Function
ls
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:23
↓ 6 callers
Function
matcher
(node: UITaskTreeNode, search: SearchMatcher, filter: Filter)
packages/ui/client/composables/explorer/filter.ts:307
↓ 6 callers
Method
matchesProjectFilter
* Check if the project with a given name should be included.
packages/vitest/src/node/core.ts:1642
↓ 6 callers
Method
mockRejectedValueOnce
* Accepts a value that will be rejected during the next function call. If chained, each consecutive call will reject the specified value. * @exampl
packages/spy/src/types.ts:383
↓ 6 callers
Method
mockThrowOnce
* Accepts a value that will be thrown during the next function call. If chained, every consecutive call will throw the specified value. * @example
packages/spy/src/types.ts:344
↓ 6 callers
Function
modifyContent
(fileContent: string)
test/cli/test/watch/file-watching.test.ts:21
↓ 6 callers
Function
ms
(n,i,a,l,u)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:28
↓ 6 callers
Function
ms
(n,i,a,l,u)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:28
↓ 6 callers
Method
ok
* Checks if the test did not fail the suite. * If the test is not finished yet or was skipped, it will return `true`.
packages/vitest/src/node/reporters/reported-tasks.ts:56
↓ 6 callers
Method
onTaskUpdate
(packs: TaskResultPack[], events: TaskEventPack[])
packages/vitest/src/api/setup.ts:267
↓ 6 callers
Function
padded
(entity: TestSuite | TestCase | TestModule, name: string, pad = 21)
test/cli/test/reporters/test-run.test.ts:1242
↓ 6 callers
Function
parseArguments
( optionsOrFn: T | object | undefined, timeoutOrTest: T | number | undefined, )
packages/runner/src/suite.ts:265
↓ 6 callers
Method
pause
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 6 callers
Method
read
(entryPath: string)
test/browser/specs/playwright-trace-mark.test.ts:351
↓ 6 callers
Method
readSnapshotFile
(filepath: string)
packages/snapshot/src/env/node.ts:36
↓ 6 callers
Method
register
(module: MockedModule)
packages/mocker/src/browser/interceptor-msw.ts:48
↓ 6 callers
Function
relative
(file: string)
test/snapshots/test/fixtures/custom-snapshot-environment/snapshot-environment.ts:4
↓ 6 callers
Function
removeLines
(log: string)
test/cli/test/stacktraces.test.ts:105
↓ 6 callers
Function
rpc
(event: string, data?: any)
packages/mocker/src/browser/utils.ts:15
↓ 6 callers
Method
runFiles
(specs: TestSpecification[], allTestsRun: boolean)
packages/vitest/src/node/core.ts:928
↓ 6 callers
Function
runSuite
(suite: Suite, runner: VitestRunner)
packages/runner/src/run.ts:837
↓ 6 callers
Method
scrollTo
()
test/core/test/vi.spec.ts:217
↓ 6 callers
Method
setConfig
(root: string, config: ResolvedConfig['cache'])
packages/vitest/src/node/cache/results.ts:29
↓ 6 callers
Function
state
()
packages/vitest/src/runtime/console.ts:57
↓ 6 callers
Method
subtract
(t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:44
↓ 6 callers
Method
subtract
(t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:44
↓ 6 callers
Function
sum
(items: T[], cb: (_next: T) => number | undefined)
packages/vitest/src/node/reporters/base.ts:998
↓ 6 callers
Method
terminate
()
packages/web-worker/src/worker.ts:196
↓ 6 callers
Function
throwConstructorError
(shorthand: string)
packages/spy/src/index.ts:697
↓ 6 callers
Method
toBeDividedBy
(divisor: number)
test/cli/fixtures/expect-soft/expects/soft.test.ts:5
↓ 6 callers
Function
toMatchSnapshotImpl
(options: { assertion: Chai.Assertion received: unknown properties?: object hint?: string isInline?:
packages/vitest/src/integrations/snapshot/chai.ts:257
↓ 6 callers
Method
toReportSummaryTestFiles
(options: SummaryOptions)
test/browser/setup.unit.ts:61
↓ 6 callers
Function
triggerCommand
(command: string, args: any[], error?: Error)
packages/browser/src/client/tester/context.ts:31
↓ 6 callers
Method
unindent
()
packages/vitest/src/node/reporters/renderers/indented-logger.ts:10
↓ 6 callers
Function
uo
(e,t,r=!1,o=!1)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 6 callers
Function
uo
(e,t,r=!1,o=!1)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 6 callers
Function
validateAssertion
(assertion: Chai.Assertion)
packages/vitest/src/integrations/snapshot/chai.ts:72
↓ 6 callers
Function
vitest
(cliOptions: TestUserConfig, configValue: TestUserConfig = {}, viteConfig: ViteUserConfig = {}, vitestOptions:
test/config/test/override.test.ts:9
↓ 6 callers
Function
withConcurrency
(test: string)
test/cli/test/expect-task.test.ts:144
↓ 6 callers
Function
wrapAssertion
( utils: Chai.ChaiUtils, name: string, fn: (this: Chai.AssertionStatic & Assertion, ...args: any[]) => v
packages/expect/src/utils.ts:96
↓ 6 callers
Function
xs
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:37
↓ 6 callers
Function
xs
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:37
↓ 6 callers
Function
yamlString
(str: string | undefined)
packages/vitest/src/node/reporters/tap.ts:9
↓ 6 callers
Function
yr
(n)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 6 callers
Function
yr
(n)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 6 callers
Function
zs
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 6 callers
Function
zs
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 5 callers
Function
Bt
(n,i,a)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 5 callers
Function
Bt
(n,i,a)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 5 callers
Function
Da
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 5 callers
Function
Da
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 5 callers
Function
Dl
(e,t,r=[])
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 5 callers
Function
Dl
(e,t,r=[])
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 5 callers
Function
Fa
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
Fa
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
Fl
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
Fl
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
Ha
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 5 callers
Function
Ha
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 5 callers
Function
Hl
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
Hl
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
Hs
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
Hs
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
Il
(n,i,a,l)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:30
↓ 5 callers
Function
Il
(n,i,a,l)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:30
↓ 5 callers
Function
Oa
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:5
↓ 5 callers
Function
Oa
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:5
↓ 5 callers
Function
Pa
* @vue/runtime-core v3.5.25 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 5 callers
Function
Pa
* @vue/runtime-core v3.5.25 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 5 callers
Function
Pl
(n,i,a,l)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:30
↓ 5 callers
Function
Pl
(n,i,a,l)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:30
↓ 5 callers
Function
Ra
(e,t,r,o=!0)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 5 callers
Function
Ra
(e,t,r,o=!0)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 5 callers
Function
Sa
(e,t=!1)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 5 callers
Function
Sa
(e,t=!1)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 5 callers
Function
Tl
(n,i,a,l)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:28
↓ 5 callers
Function
Tl
(n,i,a,l)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:28
↓ 5 callers
Function
_a
({file:e,line:t,view:r,test:o,column:s})
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:44
↓ 5 callers
Function
_a
({file:e,line:t,view:r,test:o,column:s})
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:44
↓ 5 callers
Method
a
()
test/core/test/utils.spec.ts:187
↓ 5 callers
Method
annotations
* Test annotations added via the `task.annotate` API during the test execution.
packages/vitest/src/node/reporters/reported-tasks.ts:195
↓ 5 callers
Function
appendLog
(data: string)
test/cli/fixtures/benchmarking/sequential/helper.ts:10
↓ 5 callers
Function
assertMatchResult
(result: SyncExpectationResult, customMessage?: string)
packages/vitest/src/integrations/snapshot/chai.ts:307
↓ 5 callers
Method
asymmetricMatch
(other: unknown)
packages/expect/src/jest-extend.ts:160
↓ 5 callers
Function
ba
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
ba
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 5 callers
Function
bl
(n)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:28
↓ 5 callers
Function
bl
(n)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:28
↓ 5 callers
Function
buildOptionsTree
(builder: (fn: (test: TestCase) => any) => any)
test/cli/test/test-tags.test.ts:1760
↓ 5 callers
Method
cachedRequest
* @internal
packages/vitest/src/runtime/moduleRunner/moduleRunner.ts:153
↓ 5 callers
Method
cancel
()
packages/vitest/src/node/pools/pool.ts:188
↓ 5 callers
Function
circularA
()
test/core/src/circularA.ts:5
↓ 5 callers
Function
cleanVersion
(url: string)
packages/mocker/src/browser/mocker.ts:276
↓ 5 callers
Function
cleanup
()
packages/vitest/src/runtime/cleanup.ts:11
↓ 5 callers
Method
collect
(start: boolean, end: boolean, task = true)
packages/ui/client/composables/explorer/tree.ts:120
↓ 5 callers
Method
collect
(filters?: string[], options?: { staticParse?: boolean; staticParseConcurrency?: number })
packages/vitest/src/node/core.ts:686
↓ 5 callers
Method
collect
(t,r,o=!0)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 5 callers
Method
collect
(t,r,o=!0)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 5 callers
Function
collectTests
( specs: string[] | FileSpecification[], runner: VitestRunner, )
packages/runner/src/collect.ts:23
← previous
next →
901–1,000 of 7,873, ranked by callers