MCPcopy Index your code
hub / github.com/deepnote/deepnote / writeFixture

Function writeFixture

packages/cli/src/commands/lint.test.ts:371–377  ·  view source on GitHub ↗
(names: string[])

Source from the content-addressed store, hash-verified

369 })
370
371 function writeFixture(names: string[]): string {
372 const dir = fs.mkdtempSync(join(os.tmpdir(), 'lint-multi-nb-'))
373 tempDirs.push(dir)
374 const filePath = join(dir, 'multi.deepnote')
375 fs.writeFileSync(filePath, serializeDeepnoteFile(multiNotebookFile(names)))
376 return filePath
377 }
378
379 it('emits multi-notebook for files with more than one non-init notebook', async () => {
380 const action = createLintAction(program)

Callers 1

lint.test.tsFile · 0.85

Calls 2

serializeDeepnoteFileFunction · 0.90
multiNotebookFileFunction · 0.85

Tested by

no test coverage detected