Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ replace-all.test.ts
File
replace-all.test.ts
test/MagicString/replace-all.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ assert, describe, it } from
'vitest'
2
import
{ MagicStringError } from
'../../src/index.ts'
3
import
MagicString from
'../utils/IntegrityCheckingMagicString.ts'
4
Callers
nothing calls this directly
Calls
15
replaceAll
Method · 0.80
update
Method · 0.80
toString
Method · 0.45
replace
Method · 0.45
slice
Method · 0.45
remove
Method · 0.45
prependLeft
Method · 0.45
appendLeft
Method · 0.45
prependRight
Method · 0.45
appendRight
Method · 0.45
reset
Method · 0.45
overwrite
Method · 0.45
Tested by
no test coverage detected