Skip to content

Commit a04646a

Browse files
committed
fix lock file
1 parent d1ecbcf commit a04646a

File tree

3 files changed

+9
-270
lines changed

3 files changed

+9
-270
lines changed

.eslintrc.cjs

-80
This file was deleted.

pnpm-lock.yaml

-189
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.test.mts

+9-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ describe('app', () => {
3636
program.exitOverride((e) => {
3737
throw e;
3838
});
39-
const _spyLog = vi.spyOn(console, 'log').mockImplementation(() => undefined);
39+
const output = {
40+
writeOut: vi.fn(),
41+
writeErr: vi.fn(),
42+
outputError: vi.fn(),
43+
};
44+
program.configureOutput(output);
4045
await expect(run(argv, program)).rejects.toBeInstanceOf(CommanderError);
46+
expect(output.outputError).not.toHaveBeenCalled();
47+
expect(output.writeOut).toHaveBeenCalled();
48+
expect(output.writeErr).not.toHaveBeenCalled();
4149
});
4250

4351
test.each`

0 commit comments

Comments
 (0)