MCPcopy Create free account

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

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

↓ 62 callersFunctionr
(s)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:1
↓ 61 callersFunctionqe
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 61 callersFunctionqe
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:22
↓ 60 callersFunctionVe
(e,t,r,o,s)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 60 callersFunctionVe
(e,t,r,o,s)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 59 callersFunctionGe
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 59 callersFunctionGe
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 59 callersMethodset
(t,r,o,s)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 58 callersFunctiongetCLIOptions
(commands: string)
test/core/test/cli-test.test.ts:26
↓ 58 callersFunctionrelative
(path: string)
packages/vitest/src/node/reporters/base.ts:78
↓ 57 callersFunctionPe
(D,q,Q,he=!1,de=!1,ge=0)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 57 callersFunctionPe
(D,q,Q,he=!1,de=!1,ge=0)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 57 callersFunctione
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 56 callersFunctionafterAll
( this: unknown, fn: AfterAllListener<ExtraContext>, timeout?: number, )
packages/runner/src/hooks.ts:118
↓ 55 callersFunctione
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 55 callersMethodindexOf
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 55 callersMethodtoHaveAttribute
* @description * Allows you to check if a given element has an attribute or not. * * You can also optionally check that the attribute has a s
packages/browser/jest-dom.d.ts:243
↓ 54 callersFunctionf
(...d)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 54 callersMethodtoHaveTextContent
* @description * Check whether the given element has a text content or not. * * When a string argument is passed through, it will perform a p
packages/browser/jest-dom.d.ts:402
↓ 53 callersFunctioneditFile
(file: string, callback: (content: string) => string)
test/test-utils/index.ts:373
↓ 53 callersFunctionh
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 52 callersFunctionA
(n)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 52 callersFunctionA
(n)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:22
↓ 52 callersFunctionassertType
()
packages/vitest/src/typecheck/assertType.ts:5
↓ 52 callersFunctionhoistSimpleCodeWithoutMocks
(code: string)
test/core/test/injector-mock.test.ts:128
↓ 52 callersMethodtoHaveValue
* @description * Check whether the given form element has the specified value. * * Accepts `<input>`, `<select>`, and `<textarea>` elements w
packages/browser/jest-dom.d.ts:424
↓ 51 callersFunctionQe
(e=" ",t=0)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 51 callersFunctionQe
(e=" ",t=0)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 51 callersFunctionXe
(n,i,a)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 51 callersFunctionXe
(n,i,a)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 51 callersMethodtoString
()
test/core/test/utils-display.spec.ts:25
↓ 50 callersFunctionR
(D,q,Q,he)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 50 callersFunctionR
(D,q,Q,he)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 50 callersFunctionrunBrowserTests
( config?: Omit<TestUserConfig, 'browser'> & { browser?: Partial<TestUserConfig['browser']> }, include?: s
test/browser/specs/utils.ts:32
↓ 48 callersFunctionet
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:5
↓ 48 callersFunctionet
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:5
↓ 48 callersFunctionh
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 48 callersMethodsort
(files: TestSpecification[])
test/cli/test/reporters/test-run.test.ts:1130
↓ 47 callersFunctionresolve
()
test/core/test/snapshot-async.test.ts:3
↓ 47 callersFunctionrt
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 47 callersFunctionrt
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 47 callersFunctiontt
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 47 callersFunctiontt
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:22
↓ 46 callersFunctionIe
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 46 callersFunctionIe
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:22
↓ 46 callersFunctionbeforeAll
( this: unknown, fn: BeforeAllListener<ExtraContext>, timeout: number = getDefaultHookTimeout(), )
packages/runner/src/hooks.ts:76
↓ 46 callersMethodmockReturnValue
* 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:307
↓ 45 callersFunctionafterEach
( fn: AfterEachListener<ExtraContext>, timeout?: number, )
packages/runner/src/hooks.ts:201
↓ 45 callersMethodoverride
(runner: VitestRunner, userFixtures: UserFixtures)
packages/runner/src/fixture.ts:86
↓ 45 callersMethodreport
@internal
packages/vitest/src/node/core.ts:1572
↓ 45 callersMethodresult
* Test results. * - **pending**: Test was collected, but didn't finish running yet. * - **passed**: Test passed successfully * - **failed**:
packages/vitest/src/node/reporters/reported-tasks.ts:150
↓ 45 callersMethodwrite
(data: string)
test/test-utils/cli.ts:48
↓ 44 callersMethodgetTestModules
(keys?: string[])
packages/vitest/src/node/state.ts:125
↓ 43 callersFunctionrunVitestCli
(_options?: CliOptions | string, ...args: string[])
test/test-utils/index.ts:351
↓ 42 callersFunctionc
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 42 callersFunctionc
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 42 callersMethodmockName
* Sets the internal mock name. This is useful for identifying the mock when an assertion fails. * @see https://vitest.dev/api/mock#mockname
packages/spy/src/types.ts:221
↓ 42 callersMethodmockReset
* Does what `mockClear` does and resets inner implementation to the original function. This also resets all "once" implementations. * * Note tha
packages/spy/src/types.ts:242
↓ 42 callersFunctionot
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:5
↓ 42 callersFunctionot
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:5
↓ 42 callersFunctiontoArray
(array?: Nullable<Arrayable<T>>)
packages/utils/src/helpers.ts:142
↓ 42 callersFunctionts
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:22
↓ 41 callersFunctionY
(n,i,a)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 41 callersFunctionY
(n,i,a)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 41 callersMethodassert
(options: AssertOptions)
packages/snapshot/src/client.ts:201
↓ 41 callersFunctionf
(...d)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 41 callersMethodhas
(t,r)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 41 callersMethodon
(event: 'message' | 'error', callback: (arg: any) => void)
packages/vitest/src/node/pools/poolRunner.ts:337
↓ 41 callersMethodreadFile
(path: string)
packages/vitest/src/runtime/vm/file-map.ts:19
↓ 41 callersMethodtoHaveStyle
* @description * Check if an element has specific css properties with specific values applied. * * Only matches if the element has *all* the
packages/browser/jest-dom.d.ts:379
↓ 40 callersFunctionat
(e,t)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 40 callersFunctionat
(e,t)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 40 callersFunctiond
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:9
↓ 40 callersFunctiond
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 40 callersFunctiondef
( name: keyof Assertion | (keyof Assertion)[], fn: (this: Chai.AssertionStatic & Assertion, ...args: a
packages/expect/src/jest-expect.ts:42
↓ 40 callersMethodtoReportPassedTest
(testName: string, testProject?: string | BrowserInstanceOption[])
test/browser/setup.unit.ts:59
↓ 39 callersFunctionfn
( originalImplementation?: T, )
packages/spy/src/index.ts:244
↓ 39 callersFunctiont
(r,o)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:13
↓ 39 callersFunctiont
(r,o)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:13
↓ 38 callersFunctionextractLogs
(stdout: string)
test/cli/test/around-each.test.ts:4
↓ 38 callersMethodfill
* Sets the value of the current `input`, `textarea` or `contenteditable` element. * @see {@link https://vitest.dev/api/browser/interactivity#userev
packages/browser/context.d.ts:632
↓ 38 callersMethodhas
(t,r)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:9
↓ 38 callersMethodnth
* Returns a locator for the nth element matching the selector. * @see {@link https://vitest.dev/api/browser/locators#nth}
packages/browser/context.d.ts:704
↓ 38 callersFunctionon
()
test/config/test/pool.test.ts:123
↓ 38 callersMethodreject
(error: Error)
packages/vitest/src/node/pools/browser.ts:219
↓ 38 callersMethodreset
()
packages/mocker/src/types.ts:57
↓ 38 callersMethodtoBeInTheDocument
* @description * Assert whether an element is present in the document or not. * @example * <svg data-testid="svg-element"></svg> * * aw
packages/browser/jest-dom.d.ts:17
↓ 37 callersMethodpostMessage
( ...args: [any, StructuredSerializeOptions | Transferable[] | undefined] )
packages/web-worker/src/worker.ts:163
↓ 36 callersFunctionae
(n,i)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:19
↓ 36 callersFunctionae
(n,i)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:19
↓ 36 callersFunctioncollectTests
(code: string, options?: CliOptions & { fnFn?: boolean })
test/cli/test/static-collect.test.ts:1687
↓ 36 callersFunctions
()
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 36 callersFunctions
()
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
↓ 36 callersMethodsort
(files: TestSpecification[])
packages/vitest/src/node/sequencers/BaseSequencer.ts:35
↓ 35 callersMethodend
(specifications: TestSpecification[], errors: unknown[], coverage?: unknown)
packages/vitest/src/node/test-run.ts:105
↓ 35 callersFunctionfn
()
test/core/test/jest-mock.test.ts:102
↓ 35 callersMethodgetMockName
* Use it to return the name assigned to the mock with the `.mockName(name)` method. By default, it will return `vi.fn()`. * @see https://vitest.dev
packages/spy/src/types.ts:216
↓ 34 callersFunctiongetInputByTestId
(testId: string)
test/browser/fixtures/expect-dom/utils.ts:19
↓ 34 callersFunctionht
(e)
test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:17
↓ 34 callersFunctionht
(e)
test/cli/test/fixtures/reporters/html/all-passing-or-skipped/assets/index-BUCFJtth.js:17
← previousnext →101–200 of 7,873, ranked by callers