Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ MagicString.test.ts
File
MagicString.test.ts
test/MagicString.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
type
{ RawSourceMap } from
'source-map-js'
2
import
type
{ ExclusionRange } from
'../src/index.ts'
3
import
assert from
'node:assert'
4
import
{ SourceMapConsumer } from
'source-map-js'
Callers
nothing calls this directly
Calls
15
update
Method · 0.80
replaceAll
Method · 0.80
append
Method · 0.45
toString
Method · 0.45
appendLeft
Method · 0.45
prependRight
Method · 0.45
slice
Method · 0.45
prependLeft
Method · 0.45
appendRight
Method · 0.45
overwrite
Method · 0.45
clone
Method · 0.45
addSourcemapLocation
Method · 0.45
Tested by
no test coverage detected