Skip to content

Commit d081dc1

Browse files
committed
feat: update QraftCommand initialization with default file header
1 parent 0cdaf30 commit d081dc1

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

packages/tanstack-query-react-plugin/src/plugin.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,9 @@ describe('TanStack Query React Client Generation', () => {
598598
const { QraftCommand } =
599599
await import('@openapi-qraft/plugin/lib/QraftCommand');
600600
const { plugin } = await import('./plugin.js');
601-
const command = new QraftCommand();
601+
const command = new QraftCommand(undefined, {
602+
defaultFileHeader: createFileHeader('@openapi-qraft/cli'),
603+
});
602604
plugin.setupCommand(command);
603605

604606
await command.parseAsync([
@@ -645,7 +647,9 @@ describe('TanStack Query React Client Generation', () => {
645647
const { QraftCommand } =
646648
await import('@openapi-qraft/plugin/lib/QraftCommand');
647649
const { plugin } = await import('./plugin.js');
648-
const command = new QraftCommand();
650+
const command = new QraftCommand(undefined, {
651+
defaultFileHeader: createFileHeader('@openapi-qraft/cli'),
652+
});
649653
plugin.setupCommand(command);
650654

651655
await command.parseAsync([
@@ -679,7 +683,9 @@ describe('TanStack Query React Client Generation', () => {
679683
const { QraftCommand } =
680684
await import('@openapi-qraft/plugin/lib/QraftCommand');
681685
const { plugin } = await import('./plugin.js');
682-
const command = new QraftCommand();
686+
const command = new QraftCommand(undefined, {
687+
defaultFileHeader: createFileHeader('@openapi-qraft/cli'),
688+
});
683689
plugin.setupCommand(command);
684690

685691
await command.parseAsync([

0 commit comments

Comments
 (0)