Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/local/lib/resolve-input.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ describe('getInputOverride', () => {
process.exitCode = undefined;
});

it('appends schema hint to --input file path errors when provided', async () => {
it('does not append schema hint to --input file path errors', async () => {
const result = await getInputOverride(process.cwd(), './input.json', undefined, { schemaHint: SCHEMA_HINT });

expect(result).toBe(false);
expect(process.exitCode).toBe(CommandExitCodes.InvalidInput);
const stderr = logMessages.error.join('\n');
expect(stderr).toContain('Use the "--input-file=" flag instead');
expect(stderr).toContain(SCHEMA_HINT);
expect(stderr).not.toContain(SCHEMA_HINT);
});

it('keeps --input file path errors unchanged when schema hint is omitted', async () => {
Expand Down
Loading