overleaf/services/web/test/frontend/components/pdf-preview/scope.tsx
Alf Eaton c6b0d988f9 Merge pull request #8909 from overleaf/ae-7734-auto-compile
Only autocompile when the PDF preview is open

GitOrigin-RevId: f1b2fa934da227c046c990fc86dbf78d6501a408
2022-07-22 08:03:33 +00:00

17 lines
311 B
TypeScript

export const mockScope = () => ({
settings: {
syntaxValidation: false,
pdfViewer: 'pdfjs',
},
editor: {
sharejs_doc: {
doc_id: 'test-doc',
getSnapshot: () => 'some doc content',
},
},
hasLintingError: false,
ui: {
view: 'editor',
pdfLayout: 'sideBySide',
},
})