mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-02-01 22:48:03 +00:00
17 lines
494 B
TypeScript
17 lines
494 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { describe, expect, it } from 'vitest';
|
|
import { main as generateSchema } from '../generate-settings-schema.ts';
|
|
|
|
describe('generate-settings-schema', () => {
|
|
it('keeps schema in sync in check mode', async () => {
|
|
const previousExitCode = process.exitCode;
|
|
await expect(generateSchema(['--check'])).resolves.toBeUndefined();
|
|
expect(process.exitCode).toBe(previousExitCode);
|
|
});
|
|
});
|