diff --git a/packages/cli/src/server/studioServer.previewAssets.test.ts b/packages/cli/src/server/studioServer.previewAssets.test.ts index 4c08b2b1d6..40655f2e1e 100644 --- a/packages/cli/src/server/studioServer.previewAssets.test.ts +++ b/packages/cli/src/server/studioServer.previewAssets.test.ts @@ -184,6 +184,29 @@ describe("preview image prep and files outside the project", () => { } }); + it("still converts a photo inside a received project, with outside files refused", async () => { + fs.mkdirSync(path.join(projectDir, ".hyperframes"), { recursive: true }); + fs.writeFileSync( + path.join(projectDir, ".hyperframes", "received-files.json"), + JSON.stringify({ files: ["index.html"] }), + ); + fs.mkdirSync(path.join(projectDir, "photos")); + fs.copyFileSync(heic, path.join(projectDir, "photos", "IMG_0002.HEIC")); + fs.writeFileSync( + path.join(projectDir, "index.html"), + `