Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ coverage-with-mock.mjs
File
coverage-with-mock.mjs
test/fixtures/test-runner/output/coverage-with-mock.mjs:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, it, mock } from
'node:test'
;
2
3
describe(
'module test with mock'
,
async
() => {
4
mock.module(
'../coverage-with-mock/sum.js'
, {
Callers
nothing calls this directly
Calls
4
theModuleSum
Function · 0.85
theModuleGetData
Function · 0.85
it
Function · 0.50
module
Method · 0.45
Tested by
no test coverage detected