(blocks: ReturnType<typeof makeInputBlock>[])
| 2805 | } |
| 2806 | |
| 2807 | function makeDeepnoteFile(blocks: ReturnType<typeof makeInputBlock>[]) { |
| 2808 | return { |
| 2809 | version: '1', |
| 2810 | metadata: { createdAt: '2026-01-01T00:00:00Z' }, |
| 2811 | project: { |
| 2812 | id: 'test-project', |
| 2813 | name: 'test', |
| 2814 | notebooks: [{ id: 'nb-1', name: 'Notebook 1', blocks }], |
| 2815 | }, |
| 2816 | } |
| 2817 | } |
| 2818 | |
| 2819 | it('patches deepnote_variable_value for matching input blocks', () => { |
| 2820 | const file = makeDeepnoteFile([makeInputBlock('my_var', 'saved_value')]) |