Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vitest-dev/vitest
/ createNode
Function
createNode
test/browser/src/createNode.ts:1–6 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
export
function
createNode() {
2
const
div = document.createElement(
'div'
)
3
div.className =
'node'
4
div.textContent =
'Hello World!'
5
return
div
6
}
Callers
1
dom.test.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected