Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ MagicString.test.js
File
MagicString.test.js
test/MagicString.test.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
assert from
'assert'
;
2
import
{ SourceMapConsumer } from
'source-map-js'
;
3
import
MagicString from
'./utils/IntegrityCheckingMagicString'
;
4
import
{ describe, it } from
'vitest'
;
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