MCPcopy Create free account
hub / github.com/Noumena-Network/code / resetModules

Function resetModules

src/commands/repaint/repaint.test.ts:6–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { join } from 'path'
5
6const resetModules = async () => {
7 const envUtilsPath = import.meta.resolve('../../utils/envUtils.ts')
8 const redrawPath = import.meta.resolve('../../session/replTranscriptResetRedraw.ts')
9 mock.module(redrawPath, () => ({
10 requestReplTranscriptResetRedraw: mock(() => {}),
11 }))
12 return {
13 repaint: await import('./repaint.js'),
14 redraw: await import('../../session/replTranscriptResetRedraw.js'),
15 envUtils: await import(envUtilsPath),
16 }
17}
18
19describe('selectObservedFrameRows', () => {
20 it('compares the app frame against the top of the visible tmux pane', async () => {

Callers 1

repaint.test.tsFile · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected