chore(editor): fix imports in legacy tests (#10300)

This commit is contained in:
Saul-Mirone
2025-02-20 03:30:05 +00:00
parent e0b2b2b33c
commit c3fc0a0d88
119 changed files with 96 additions and 90 deletions

View File

@@ -0,0 +1,15 @@
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;