* Reassembles a Deepnote project's notebooks from per-notebook Jupyter inputs. * Conversion is now per-notebook, so each Jupyter notebook is converted on its * own and its single resulting notebook is collected back into an array.
( jupyterNotebooks: ReturnType<typeof convertDeepnoteToJupyterNotebooks>, projectName: string )
| 16 | * own and its single resulting notebook is collected back into an array. |
| 17 | */ |
| 18 | function roundtripDeepnoteNotebooks( |
| 19 | jupyterNotebooks: ReturnType<typeof convertDeepnoteToJupyterNotebooks>, |
| 20 | projectName: string |
| 21 | ) { |
| 22 | return jupyterNotebooks.map(nb => convertJupyterNotebookToDeepnote(nb, { projectName }).project.notebooks[0]) |
| 23 | } |
| 24 | |
| 25 | describe('Deepnote → Jupyter → Deepnote roundtrip', () => { |
| 26 | it('preserves notebook content', async () => { |
no test coverage detected