Files
AFFiNE-Mirror/blocksuite/tests-legacy/utils/multiple-editor.ts
2024-12-20 11:08:21 +00:00

16 lines
337 B
TypeScript

import process from 'node:process';
const editorIndex = {
0: 0,
1: 1,
}[process.env.MULTIPLE_EDITOR_INDEX ?? ''];
export const scope =
editorIndex == null
? undefined
: editorIndex === 0
? 'FIRST | '
: 'SECOND | ';
export const multiEditor = scope != null;
export const currentEditorIndex = editorIndex ?? 0;