Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitest-dev/vitest
/ add
Function
add
test/core/src/in-source/add.ts:1–3 ·
view source on GitHub ↗
(...args: number[])
Source
from the content-addressed store, hash-verified
1
export
function
add(...args: number[]) {
2
return
args.reduce((a, b) => a + b, 0)
3
}
4
5
// in-source test suites
6
if
(
import
.meta.vitest) {
Callers
3
fibonacci
Function · 0.90
add.ts
File · 0.70
wasm.test.ts
File · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected