Node TAP
GitHub
node-tap.org
@tapjs/stack
parse
isLineRef
Function isLineRef
isLineRef
(
lr
?:
Compiled
)
:
lr
is
LineRef
Parameters
Optional
lr
:
Compiled
Returns
lr
is
LineRef
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
node-tap.org
Node TAP
@tapjs
after
After
plugin
after-
each
After
Each
plugin
asserts
index
Assertions
Assert
Options
Error
Cause
Match
Error
Code
Match
Error
Errors
Match
Error
Match
Error
Message
Match
Error
Name
Match
Expected
Emit
Throws
Args
plugin
normalize-
throws-
args
normalize
Throws
Args
before
Before
plugin
before-
each
Before
Each
plugin
chdir
Chdir
plugin
clock
Clock
Clock
Plugin
Timer
Saved
Set
Immediate
Set
Immediate
Promise
Set
Interval
Set
Interval
Promise
Set
Timeout
Set
Timeout
Promise
Timer
Provider
Mock
Date
plugin
config
index
Tap
Config
Loaded
Config
Base
Config
Set
Config
File
Data
Options
Subset
Path
Options
base
Config
jack
default
jobs
jobs
core
base
Base
Tap
Wrap
Base
Opts
Tap
Base
Events
MILLISECONDS
clean-
yaml-
object
delete
Always
delete
If
Empty
delete
If
Match
clean
Yaml
Object
counts
Counts
Counts
JSON
diags
diags
esc
esc
extra-
from-
error
extra
From
Error
implicit-
end-
sigil
IMPLICIT
index
Extra
Message
Extra
Tap
Plugin
argv
Base
Base
Opts
Child
Process
With
Stdout
Counts
Counts
JSON
cwd
env
EOF
extra
From
Error
Lists
main
Script
MILLISECONDS
Minimal
normalize
Message
Extra
Opts
parse
Test
Args
proc
Promise
With
Subtest
Queue
Entry
Result
Spawn
Spawn
Events
Spawn
Opts
Stdin
Stdin
Opts
tap
TAP
Tap
Base
Events
tap
Dir
Tap
File
Tap
File
Events
Tap
File
Opts
Tap
Wrap
Test
Args
Test
Base
Test
Base
Events
Test
Base
Opts
Test
Point
Waiter
Worker
Worker
Events
Worker
Opts
lists
Lists
main-
script
main
Script
message-
from-
error
message
From
Error
minimal
Minimal
normalize-
message-
extra
normalize
Message
Extra
parse-
test-
args
Opts
Test
Args
parse
Test
Args
proc
argv
cwd
env
proc
spawn
Spawn
Spawn
Events
Spawn
Opts
Child
Process
With
Stdout
stdin
Stdin
Stdin
Opts
tap
TAP
tap
tap-
dir
tap
Dir
tap-
file
Tap
File
Tap
File
Events
Tap
File
Opts
test-
base
Test
Base
Promise
With
Subtest
Test
Base
Events
Test
Base
Opts
EOF
Queue
Entry
test-
point
Test
Point
Result
throw-
to-
parser
throw
To
Parser
waiter
Waiter
worker
Worker
Worker
Events
Worker
Opts
create-
plugin
docs
dummy-
plugin
import
index
Dummy
Plugin
config
import
Loader
loader
plugin
load-
reporter
default
loader
global
Preload
reporter
default
error-
serdes
constants
error
Ctor
Names
errors
k
Custom
Inspect
k
Custom
Inspected
Object
k
Inspected
Error
k
Inspected
Symbol
k
Serialized
Error
k
Serialized
Object
k
Serialized
Size
Header
k
V8
Header
Length
deserialize
deserialize
Error
index
constants
deserialize
Error
Diagnostic
Data
Fail
Data
Fail
Data
Details
Fail
Data
Details
Serialized
is
Message
Fail
Location
Message
Message
Dequeue
Message
Diagnostic
Message
Enqueue
Message
Fail
Message
Pass
Message
Plan
Message
Start
Message
Stderr
Message
Stdout
Named
Nested
Location
Nested
Location
Pass
Data
Pass
Data
Details
Plan
Data
Results
Data
Details
serialize
Error
String
Data
Test
Data
Test
Stream
Deserialize
Test
Stream
Serialize
messages
Fail
Data
Details
Fail
Data
Details
Serialized
Named
Nested
Location
Nested
Location
Plan
Data
Results
Data
Details
String
Data
Test
Data
Diagnostic
Data
Fail
Data
Location
Message
Message
Dequeue
Message
Diagnostic
Message
Enqueue
Message
Fail
Message
Pass
Message
Plan
Message
Start
Message
Stderr
Message
Stdout
Pass
Data
Pass
Data
Details
is
Message
Fail
serialize
serialize
Error
test-
stream-
deserialize
Test
Stream
Deserialize
Diagnostic
Data
Fail
Data
Fail
Data
Details
Fail
Data
Details
Serialized
is
Message
Fail
Location
Message
Message
Dequeue
Message
Diagnostic
Message
Enqueue
Message
Fail
Message
Pass
Message
Plan
Message
Start
Message
Stderr
Message
Stdout
Named
Nested
Location
Nested
Location
Pass
Data
Pass
Data
Details
Plan
Data
Results
Data
Details
String
Data
Test
Data
test-
stream-
serialize
Test
Stream
Serialize
Diagnostic
Data
Fail
Data
Fail
Data
Details
Fail
Data
Details
Serialized
is
Message
Fail
Location
Message
Message
Dequeue
Message
Diagnostic
Message
Enqueue
Message
Fail
Message
Pass
Message
Plan
Message
Start
Message
Stderr
Message
Stdout
Named
Nested
Location
Nested
Location
Pass
Data
Pass
Data
Details
Plan
Data
Results
Data
Details
String
Data
Test
Data
esbuild-
kit
index
config
loader
plugin
preload
test
File
Extensions
loader
filter
Filter
Filter
Options
config
plugin
fixture
fixture
Fixture
Fixture
Dir
Fixture
Content
Fixture
Dir
Content
Fixture
Type
index
Test
Fixtures
Test
Fixtures
Options
config
plugin
Fixture
Fixture
Content
Fixture
Dir
Fixture
Dir
Content
Fixture
Type
intercept
Interceptor
Capture
Result
Base
Capture
Result
Returned
Capture
Result
Threw
Intercept
Result
Base
Intercept
Result
Get
Intercept
Result
Set
Capture
Result
Capture
Results
Method
Filter
Tuple
Unknown
Filter
Unknown
Intercept
Result
Intercept
Results
Method
Methods
Methods
Object
Never
Tuple
Unknown
Never
Unknown
OR
Tuple
Overload
Params
Overload
Params
Tuple
Overload
Return
Type
Receiver
Tuple
Union
Unarray
Unarray
Array
plugin
mocha-
globals
Done
Hook
Block
Suite
Block
Test
Block
config
plugin
after
after
Each
before
before
Each
current
Suite
current
Test
describe
globalize
it
mount
mounted
tt
context
setup
specify
suite
suite
Setup
suite
Teardown
teardown
test
mock
export-
line
export
Line
hooks
load
resolve
global
Preload
initialize
hooks-
url
hooks
import
index
Tap
Mock
Mocked
Object
import
Loader
loader
plugin
legacy-
loader
global
Preload
load
resolve
loader
initialize
load
resolve
mock-
require
Mocked
Module
Mocker
Correct
Module
Correct
Module
Ctor
mock
Require
mock-
service
Mock
Service
Mock
Service
Load
Request
Mock
Service
Request
Mock
Service
Resolve
Request
Mock
Service
Response
is
Mock
Service
Request
is
Mock
Service
Response
mock-
service-
client
Mock
Service
Client
munge-
mocks
munge
Mocks
resolve-
mock-
entry-
point
resolve
Mock
Entry
Point
service-
key
service
Key
nock
errors
Err
Missing
Snapshot
Data
Err
Mock
Not
Satisfied
index
Tap
Nock
Nock
Method
plugin
Nock
Recorder
Nock
Recorder
Load
Options
Nock
Recorder
Options
Nock
Recorder
Options
Maybe
Scope
With
At
recorder
Nock
Recorder
Nock
Recorder
Load
Options
Nock
Recorder
Options
Nock
Recorder
Options
Maybe
Scope
With
At
node-
serialize
comment
comment
Method
index
plugin
loc-
from-
at
loc
From
At
loc-
from-
callsite
loc
From
Call
Site
on-
add
on
Add
Fn
pretty-
diff
pretty
Diff
print-
messages
print
Messages
Fn
result-
to-
error
result
To
Error
serialize
serialize
stdio
serialize
Stdio
test-
map
Test
Map
test-
message-
data
test
Message
Data
test-
nested-
location
test
Nested
Location
test-
point-
message-
data
test
Point
Message
Data
test-
point-
results
test
Point
Results
test-
results
test
Results
reporter
assert-
name
assert
Name
bailed-
out
Bailed
Out
base
Base
components
Bailed
Out
Console
Log
Line
Diff
Hanging
Indent
Log
Log
Opts
Result
Detail
List
Result
Details
Result
Opts
Result
Tag
Runs
Source
Source
Opts
Stack
Stdio
Log
Line
Suite
Summary
Test
Badge
Test
Badge
Opts
Test
Log
Line
Test
Results
List
Test
Results
List
Opts
Test
Summary
Test
Summary
Opts
Timed
Out
diff
Diff
dot
Dot
hanging-
indent
Hanging
Indent
hooks
Cleanup
Effect
Console
Log
is
Console
Log
is
Stdio
Log
is
Test
Log
Log
Entry
Stdio
Log
Test
Log
use
Assert
Totals
use
Bailed
Out
use
Cleanup
use
Comments
use
Counts
Lists
use
Is
Done
use
Log
use
Subtests
use
Suite
Totals
use
Test
Time
use
Timed
Out
use-
assert-
totals
use
Assert
Totals
use-
bailed-
out
use
Bailed
Out
use-
cleanup
Cleanup
Effect
use
Cleanup
use-
comments
use
Comments
use-
counts-
lists
use
Counts
Lists
use-
is-
done
use
Is
Done
use-
log
Console
Log
Stdio
Log
Test
Log
Log
Entry
is
Console
Log
is
Stdio
Log
is
Test
Log
use
Log
use-
subtests
use
Subtests
use-
suite-
totals
use
Suite
Totals
use-
test-
time
use
Test
Time
use-
timed-
out
use
Timed
Out
index
Tap
Report
Opts
Reporter
types
add
Type
report
Base
components
Dot
hooks
JSON
Report
JSON
Stream
J
Unit
Markdown
Stream
Min
Terse
utils
json
Case
JSON
Report
JSON
Stream
Suite
Suites
junit
J
Unit
listen-
cleanup
listen
Cleanup
log
Log
Opts
Console
Log
Line
Log
Stdio
Log
Line
Test
Log
Line
markdown
Markdown
Stream
min
Min
ms
ms
result-
detail-
list
Result
Detail
List
result-
details
Result
Details
result-
tag
Result
Opts
Result
Tag
runs
Runs
source
Source
Opts
Source
stack
Stack
suite-
summary
Suite
Summary
terse
Terse
test-
badge
Test
Badge
Opts
Test
Badge
test-
results-
list
Test
Results
List
Opts
Test
Results
List
test-
summary
Test
Summary
Opts
Test
Summary
timed-
out
Timed
Out
utils
assert
Name
listen
Cleanup
ms
run
after
run
After
analyze-
plugin-
arg
analyze
Plugin
Arg
before
run
Before
build
build
config
config
first
Of
coverage-
map
get
Coverage
Map
debug
debug
execute-
test-
suite
execute
Test
Suite
get-
install-
set
get
Install
Set
get-
installed-
version
get
Installed
Version
handle-
reporter
handle
Reporter
help
help
index
list
list
main-
config
Config
Values
Jack
Loaded
args
config
main
Bin
main
Command
positionals
values
npm
install
npm
Bg
npm
Find
Cwd
uninstall
output-
dir
output
Dir
output-
file
output
File
pkg-
exists
pkg
Exists
plugin
plugin
proxy-
fatal-
signals
proxy
Fatal
Signals
repl
repl
chokidar-
options
options
file-
completer
file
Completer
filter-
completions
filter
Completions
processinfo-
completions
processinfo
Completions
watch
Watch
repl
Repl
Printed
Process
Info
Node
usage
replay
replay
report
report
run
run
save-
list
read
Save
write
Save
select-
version
select
Version
test-
argv
test
Argv
test-
is-
serial
test
Is
Serial
try-
get-
version
try
Get
Version
version
get
All
Versions
version
sinon
Tap
Sinon
Tap
Sinon
Opts
plugin
snapshot
clean-
cwd
clean
CWD
index
Snapshot
Plugin
Snapshot
Options
Snapshot
Provider
config
plugin
provider
Snapshot
Provider
Default
require
req
spawn
Spawn
Plugin
Spawn
Opts
Promise
With
Spawn
plugin
stack
call-
site-
like
Call
Site
Like
Call
Site
Like
JSON
Generated
Result
index
at
add
Ignored
Package
capture
capture
Error
capture
Error
String
capture
String
expand
Stack
get
Cwd
get
Filter
Ignored
Packages
get
Filter
Node
Internals
get
Ignored
Packages
get
Ignored
Packages
RE
parse
Stack
remove
Ignored
Package
set
Cwd
set
Filter
Ignored
Packages
set
Filter
Node
Internals
Call
Site
Like
Call
Site
Like
JSON
Compiled
Generated
Result
Line
Ref
parse
Compiled
Line
Ref
Native
Line
Ref
is
Compiled
Call
Site
Line
is
Line
Ref
parse
Call
Site
Line
require-
resolve
require
Resolve
stdin
Stdin
Plugin
Promise
With
Stdin
plugin
synonyms
index
Synonyms
plugin
synonyms
synonyms
synonyms
test
build
default-
plugins
default
Plugins
index
Test
Built
Plugins
Plugin
Extension
Option
Plugin
Opts
Plugin
Result
Plugin
Set
Second
Param
Test
Opts
T
Test
config
exec
Argv
import
Loaders
loader
Fallbacks
loaders
signature
test
File
Extensions
default
Plugins
set-
plugin-
core-
link
set
Plugin
Core
Link
set-
plugin-
package-
json
set
Plugin
Package
Json
tsx
import
index
config
import
Loader
loader
plugin
preload
test
File
Extensions
loader
typescript
esm
get
Format
global
Preload
load
resolve
transform
Source
import
index
config
import
Loader
loader
plugin
preload
test
File
Extensions
worker
Worker
Plugin
Promise
With
Worker
plugin
npm-
init-
template
Init
Build
Options
Read
Options
Template
Setting
Template
Settings
read
default
Template
Settings
tap
dummy-
import
index
Base
Counts
Lists
Minimal
Spawn
Stdin
Tap
File
Test
Test
Base
Worker
Base
Opts
Extra
Spawn
Events
Spawn
Opts
Stdin
Opts
TAP
Tap
Base
Events
Tap
File
Events
Tap
File
Opts
Test
Base
Events
Test
Base
Opts
Worker
Events
Worker
Opts
Tap
Plugin
Test
Opts
after
after
Each
bailout
before
before
Each
capture
capture
Fn
comment
create
Mock
default
does
Not
Throw
emits
end
error
fail
fixture
has
has
Strict
intercept
match
match
Only
match
Only
Strict
match
Snapshot
match
Strict
Maybe
Maybe
Plugin
mock
Import
mock
Require
not
not
Has
not
Has
Strict
not
Match
not
Match
Only
not
Match
Only
Strict
not
Match
Strict
not
Ok
not
Same
ok
only
pass
plan
pragma
same
skip
spawn
stdin
stdin
Only
strict
Not
Same
t
test
testdir
throws
timeout
todo
type
worker
main
Maybe
Maybe
Plugin
after
after
Each
bailout
before
before
Each
capture
capture
Fn
comment
create
Mock
does
Not
Throw
emits
end
error
fail
fixture
has
has
Strict
intercept
match
match
Only
match
Only
Strict
match
Snapshot
match
Strict
mock
Import
mock
Require
not
not
Has
not
Has
Strict
not
Match
not
Match
Only
not
Match
Only
Strict
not
Match
Strict
not
Ok
not
Same
ok
only
pass
plan
pragma
same
skip
spawn
stdin
stdin
Only
strict
Not
Same
t
test
testdir
throws
timeout
todo
type
worker
Base
Base
Opts
Counts
Extra
Lists
Minimal
Spawn
Spawn
Events
Spawn
Opts
Stdin
Stdin
Opts
TAP
Tap
Base
Events
Tap
File
Tap
File
Events
Tap
File
Opts
Tap
Plugin
Test
Test
Base
Test
Base
Events
Test
Base
Opts
Test
Opts
Worker
Worker
Events
Worker
Opts
run
tap-
parser
brace-
patterns
OPEN_
BRACE_
EOL
SPACE_
OPEN_
BRACE_
EOL
escape
esc
unesc
final-
plan
Final
Plan
final-
results
Final
Results
index
Parser
Parser
Options
Pragmas
Event
Log
Directive
Final
Plan
Final
Results
line
Type
line
Types
parse
Directive
Parsed
Line
Plan
Result
Tap
Error
line-
type
Parsed
Line
line
Types
line
Type
parse-
directive
Directive
parse
Directive
plan
Plan
result
Result
Tap
Error
statics
parse
stringify
tap-
yaml
index
default
parse
stringify
parse
parse
stringify
stringify
types
custom
Tags
date
date
timestamp
timestamp
tcompare
format
Format
Format
Options
has
Has
has-
strict
Has
Strict
index
Result
Compare
Options
has
has
Strict
match
match
Only
match
Only
Strict
match
Strict
same
strict
format
Format
Format
Options
Has
Has
Strict
Match
Match
Only
Match
Only
Strict
Match
Strict
Same
Same
Options
Strict
Style
styles
match
Match
match-
only
Match
Only
match-
only-
strict
Match
Only
Strict
match-
strict
Match
Strict
react-
element-
to-
jsx-
string
React
Element
To
JSX
String
Options
default
same
Same
Same
Options
strict
Strict
styles
Style
Style
Type
styles
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R