MCPcopy
hub / github.com/vitest-dev/vitest / runInlineBrowserTests

Function runInlineBrowserTests

test/browser/specs/utils.ts:9–30  ·  view source on GitHub ↗
(
  structure: TestFsStructure,
  config?: RunVitestConfig,
  options?: VitestRunnerCLIOptions,
)

Source from the content-addressed store, hash-verified

7export { instances, provider } from '../settings'
8
9export async function runInlineBrowserTests(
10 structure: TestFsStructure,
11 config?: RunVitestConfig,
12 options?: VitestRunnerCLIOptions,
13) {
14 return runInlineTests(
15 structure,
16 {
17 watch: false,
18 reporters: 'none',
19 ...config,
20 browser: {
21 enabled: true,
22 provider,
23 instances,
24 headless: true,
25 ...config?.browser,
26 } as TestUserConfig['browser'],
27 },
28 options,
29 )
30}
31
32export async function runBrowserTests(
33 config?: Omit<TestUserConfig, 'browser'> & { browser?: Partial<TestUserConfig['browser']> },

Callers 2

readiness.test.tsFile · 0.90
errors.test.tsFile · 0.90

Calls 1

runInlineTestsFunction · 0.90

Tested by

no test coverage detected