温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/test/default/EventData
点击访问原文链接

namespace EventData | Node.js node:test module | Bun

namespace EventData | Node.js node:test module | BunBuildDocsReferenceGuidesBlogDiscord/node:test/default/EventDataNEventData

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:test/default/EventDataNEventData

namespace

test.default.EventDatanamespace EventDatainterface Errorcause: unknown

The cause of the error.

message: stringname: stringstack?: stringinterface LocationInfocolumn?: number

The column number where the test is defined, or undefined if the test was run through the REPL.

file?: string

The path of the test file, undefined if test was run through the REPL.

line?: number

The line number where the test is defined, or undefined if the test was run through the REPL.

interface TestCompletecolumn?: number

The column number where the test is defined, or undefined if the test was run through the REPL.

details: { duration_ms: number; error: Error; passed: boolean; type: 'suite' | 'test' }

Additional execution metadata.

file?: string

The path of the test file, undefined if test was run through the REPL.

line?: number

The line number where the test is defined, or undefined if the test was run through the REPL.

name: string

The test name.

nesting: number

The nesting level of the test.

skip?: string | boolean

Present if context.skip is called.

testNumber: number

The ordinal number of the test.

todo?: string | boolean

Present if context.todo is called.

interface TestCoveragenesting: number

The nesting level of the test.

summary: { files: { branches: { count: number; line: number }[]; coveredBranchCount: number; coveredBranchPercent: number; coveredFunctionCount: number; coveredFunctionPercent: number; coveredLineCount: number; coveredLinePercent: number; functions: { count: number; line: number; name: string }[]; lines: { count: number; line: number }[]; path: string; totalBranchCount: number; totalFunctionCount: number; totalLineCount: number }[]; thresholds: { branch: number; function: number; line: number }; totals: { coveredBranchCount: number; coveredBranchPercent: number; coveredFunctionCount: number; coveredFunctionPercent: number; coveredLineCount: number; coveredLinePercent: number; totalBranchCount: number; totalFunctionCount: number; totalLineCount: number }; workingDirectory: string }

An object containing the coverage report.

interface TestDequeuecolumn?: number

The column number where the test is defined, or undefined if the test was run through the REPL.

file?: string

The path of the test file, undefined if test was run through the REPL.

line?: number

The line number where the test is defined, or undefined if the test was run through the REPL.

name: string

The test name.

nesting: number

The nesting level of the test.

type: 'suite' | 'test'

The test type. Either 'suite' or 'test'.

interface TestDiagnosticcolumn?: number

The column number where the test is defined, or undefined if the test was run through the REPL.

file?: string

The path of the test file, undefined if test was run through the REPL.

level: 'error' | 'info' | 'warn'

The severity level of the diagnostic message. Possible values are:

'info': Informational messages.'warn': Warnings.'error': Errors.
line?: number

The line number where the test is defined, or undefined if the test was run through the REPL.

message: string

The diagnostic message.

nesting: number

The nesting level of the test.

interface TestEnqueuecolumn?: number

The column number where the test is defined, or undefined if the test was run through the REPL.

file?: string

The path of the test file, undefined if test was run through the REPL.

line?: number

The line number where the test is defined, or undefined if the test was run through the REPL.

name: string

The test name.

nesting: number

The nesting level of the test.

type: 'suite' | 'test'

The test type. Either 'suite' or 'test'.

interface TestFailcolumn?: number

The column number where the test is defined, or undefined if the test was run through the REPL.

details: { attempt: number; duration_ms: number; error: Error; type: 'suite' | 'test' }

Additional execution metadata.

file?: string

The path of the test file, undefined if test was run through the REPL.

line?: number

The line number where the test is defined, or undefined if the test was run through the REPL.

name: string

The test name.

nesting: number

The nesting level of the test.

skip?: string | boolean

Present if context.skip is called.

testNumber: number

The ordinal number of the test.

todo?: string | boolean

Present if context.todo is called.

interface TestInterruptedtests: TestStart[]

An array of objects containing information about the interrupted tests.

interface TestPasscolumn?: number

The column number where the test is defined, or undefined if the test was run through the REPL.

details: { attempt: number; duration_ms: number; passed_on_attempt: number; type: 'suite' | 'test' }

Additional execution metadata.

file?: string

The path of the test file, undefined if test was run through the REPL.

line?: number

The line number where the test is defined, or undefined if the test was run through the REPL.

name: string

The test name.

nesting: number

The nesting level of the test.

skip?: string | boolean

Present if context.skip is called.

testNumber: number

The ordinal number of the test.

todo?: string | boolean

Present if context.todo is called.

interface TestPlancolumn?: number

The column number where the test is defined, or undefined if the test was run through the REPL.

count: number

The number of subtests that have ran.

file?: string

The path of the test file, undefined if test was run through the REPL.

line?: number

The line number where the test is defined, or undefined if the test was run through the REPL.

nesting: number

The nesting level of the test.

interface TestStartcolumn?: number

The column number where the test is defined, or undefined if the test was run through the REPL.

file?: string

The path of the test file, undefined if test was run through the REPL.

line?: number

The line number where the test is defined, or undefined if the test was run through the REPL.

name: string

The test name.

nesting: number

The nesting level of the test.

interface TestStderrfile: string

The path of the test file.

message: string

The message written to stderr.

interface TestStdoutfile: string

The path of the test file.

message: string

The message written to stdout.

interface TestSummarycounts: { cancelled: number; passed: number; skipped: number; suites: number; tests: number; todo: number; topLevel: number }

An object containing the counts of various test results.

duration_ms: number

The duration of the test run in milliseconds.

file: undefined | string

The path of the test file that generated the summary. If the summary corresponds to multiple files, this value is undefined.

success: boolean

Indicates whether or not the test run is considered successful or not. If any error condition occurs, such as a failing test or unmet coverage threshold, this value will be set to false.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

namespace EventData | Node.js node:test module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for namespace node:test.default.EventData | Bun