Skip to content

Commit a6448ac

Browse files
committed
fix: tests should have log file set
1 parent 50c3a7f commit a6448ac

File tree

10 files changed

+17
-0
lines changed

10 files changed

+17
-0
lines changed

packages/openapi-ts/src/generate/__tests__/class.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ describe('generateLegacyClientClass', () => {
2020
path: '',
2121
},
2222
logs: {
23+
file: true,
2324
level: 'info',
2425
path: process.cwd(),
2526
},

packages/openapi-ts/src/generate/__tests__/core.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ describe('generateLegacyCore', () => {
3535
path: '',
3636
},
3737
logs: {
38+
file: true,
3839
level: 'info',
3940
path: process.cwd(),
4041
},
@@ -127,6 +128,7 @@ describe('generateLegacyCore', () => {
127128
path: '',
128129
},
129130
logs: {
131+
file: true,
130132
level: 'info',
131133
path: process.cwd(),
132134
},
@@ -202,6 +204,7 @@ describe('generateLegacyCore', () => {
202204
path: '',
203205
},
204206
logs: {
207+
file: true,
205208
level: 'info',
206209
path: process.cwd(),
207210
},

packages/openapi-ts/src/generate/__tests__/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ describe('generateIndexFile', () => {
2020
path: '',
2121
},
2222
logs: {
23+
file: true,
2324
level: 'info',
2425
path: process.cwd(),
2526
},

packages/openapi-ts/src/generate/__tests__/output.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe('generateLegacyOutput', () => {
2121
path: '',
2222
},
2323
logs: {
24+
file: true,
2425
level: 'info',
2526
path: process.cwd(),
2627
},

packages/openapi-ts/src/openApi/__tests__/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ vi.mock('../3.1.x', () => ({
1818
vi.mock('../../utils/config', () => {
1919
const config: Partial<Config> = {
2020
logs: {
21+
file: false,
2122
level: 'silent',
2223
path: '',
2324
},

packages/openapi-ts/src/plugins/@hey-api/schemas/__tests__/schemas.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe('generateLegacySchemas', () => {
2121
path: '',
2222
},
2323
logs: {
24+
file: true,
2425
level: 'info',
2526
path: process.cwd(),
2627
},
@@ -109,6 +110,7 @@ describe('generateLegacySchemas', () => {
109110
path: '',
110111
},
111112
logs: {
113+
file: true,
112114
level: 'info',
113115
path: process.cwd(),
114116
},

packages/openapi-ts/src/plugins/@hey-api/sdk/__tests__/plugin.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('handlerLegacy', () => {
2424
path: '',
2525
},
2626
logs: {
27+
file: true,
2728
level: 'info',
2829
path: process.cwd(),
2930
},
@@ -184,6 +185,7 @@ describe('methodNameBuilder', () => {
184185
path: '',
185186
},
186187
logs: {
188+
file: true,
187189
level: 'info',
188190
path: process.cwd(),
189191
},
@@ -266,6 +268,7 @@ describe('methodNameBuilder', () => {
266268
path: '',
267269
},
268270
logs: {
271+
file: true,
269272
level: 'info',
270273
path: process.cwd(),
271274
},
@@ -351,6 +354,7 @@ describe('methodNameBuilder', () => {
351354
path: '',
352355
},
353356
logs: {
357+
file: true,
354358
level: 'info',
355359
path: process.cwd(),
356360
},

packages/openapi-ts/src/plugins/@hey-api/typescript/__tests__/plugin.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe('generateLegacyTypes', () => {
2121
path: '',
2222
},
2323
logs: {
24+
file: true,
2425
level: 'info',
2526
path: process.cwd(),
2627
},

packages/openapi-ts/src/utils/__tests__/handlebars.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ describe('registerHandlebarHelpers', () => {
1818
path: '',
1919
},
2020
logs: {
21+
file: true,
2122
level: 'info',
2223
path: process.cwd(),
2324
},
@@ -84,6 +85,7 @@ describe('registerHandlebarTemplates', () => {
8485
path: '',
8586
},
8687
logs: {
88+
file: true,
8789
level: 'info',
8890
path: process.cwd(),
8991
},

packages/openapi-ts/src/utils/__tests__/parse.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ describe('operationNameFn', () => {
1313
path: '',
1414
},
1515
logs: {
16+
file: true,
1617
level: 'info',
1718
path: process.cwd(),
1819
},

0 commit comments

Comments
 (0)