fix(cli): correct alternate buffer warning logic for JetBrains (#26067)

This commit is contained in:
Adib234
2026-04-27 16:00:01 -04:00
committed by GitHub
parent b1a50a58af
commit 31337b9269
2 changed files with 18 additions and 2 deletions
@@ -220,5 +220,22 @@ describe('getUserStartupWarnings', () => {
);
expect(warnings).not.toContainEqual(compWarning);
});
it('should correctly pass isAlternateBuffer option to getCompatibilityWarnings', async () => {
const projectDir = path.join(testRootDir, 'project-alt');
await fs.mkdir(projectDir);
await getUserStartupWarnings({}, projectDir, { isAlternateBuffer: true });
expect(getCompatibilityWarnings).toHaveBeenCalledWith({
isAlternateBuffer: true,
});
await getUserStartupWarnings({}, projectDir, {
isAlternateBuffer: false,
});
expect(getCompatibilityWarnings).toHaveBeenCalledWith({
isAlternateBuffer: false,
});
});
});
});