fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: use references in test packages

Lubos 648d46a0 5117e7ea

+14 -49
-1
packages/openapi-ts-tests/main/package.json
··· 4 4 "private": true, 5 5 "type": "module", 6 6 "scripts": { 7 - "test:types": "tsc -p tsconfig.test.json --noEmit", 8 7 "typecheck": "tsc --noEmit" 9 8 }, 10 9 "devDependencies": {
+2 -3
packages/openapi-ts-tests/main/test/clients.test.ts
··· 5 5 import { customClientPlugin } from '@hey-api/custom-client/plugin'; 6 6 import { createClient, type UserConfig } from '@hey-api/openapi-ts'; 7 7 8 - import type { PluginClientNames } from '../../../openapi-ts/src/plugins/types'; 9 8 import { getFilePaths, getSpecsPath } from '../../utils'; 10 9 import { myClientPlugin } from './custom/client/plugin'; 11 10 12 11 const __filename = fileURLToPath(import.meta.url); 13 12 const __dirname = path.dirname(__filename); 14 13 15 - const clients: ReadonlyArray<PluginClientNames> = [ 14 + const clients = [ 16 15 '@hey-api/client-angular', 17 16 '@hey-api/client-axios', 18 17 '@hey-api/client-fetch', ··· 20 19 '@hey-api/client-next', 21 20 '@hey-api/client-nuxt', 22 21 '@hey-api/client-ofetch', 23 - ]; 22 + ] satisfies UserConfig['plugins']; 24 23 25 24 for (const client of clients) { 26 25 const namespace = 'clients';
+3 -7
packages/openapi-ts-tests/main/tsconfig.json
··· 2 2 "extends": "../tsconfig.base.json", 3 3 "compilerOptions": { 4 4 "allowImportingTsExtensions": true, 5 - "declaration": false, 6 - "esModuleInterop": true, 7 - "noEmit": true, 8 - "resolveJsonModule": true, 9 - "skipLibCheck": true, 10 - "types": ["vitest/globals"] 5 + "resolveJsonModule": true 11 6 }, 12 - "exclude": ["test/custom/request.ts", "test/generated/**"] 7 + "exclude": ["test/custom/request.ts", "test/generated/**"], 8 + "references": [{ "path": "../../openapi-ts" }] 13 9 }
-26
packages/openapi-ts-tests/main/tsconfig.test.json
··· 1 - { 2 - "$schema": "https://json.schemastore.org/tsconfig", 3 - "compilerOptions": { 4 - "esModuleInterop": true, 5 - "experimentalDecorators": true, 6 - "isolatedModules": true, 7 - "lib": ["ES2022"], 8 - "module": "ES2022", 9 - "moduleDetection": "force", 10 - "moduleResolution": "bundler", 11 - "noEmit": true, 12 - "noImplicitOverride": true, 13 - "noImplicitReturns": true, 14 - "noUncheckedIndexedAccess": true, 15 - "noUncheckedSideEffectImports": true, 16 - "noUnusedLocals": true, 17 - "noUnusedParameters": true, 18 - "resolveJsonModule": true, 19 - "skipLibCheck": true, 20 - "strict": true, 21 - "target": "ES2022", 22 - "types": ["node", "vitest/globals"], 23 - "useDefineForClassFields": true 24 - }, 25 - "include": ["test/generated/2.0.x/**/*", "test/generated/3.0.x/**/*", "test/generated/3.1.x/**/*"] 26 - }
+2 -1
packages/openapi-ts-tests/sdks/tsconfig.json
··· 1 1 { 2 2 "extends": "../tsconfig.base.json", 3 3 "include": ["test/**/*", "__snapshots__/**/*"], 4 - "exclude": [".gen/**/*"] 4 + "exclude": [".gen/**/*"], 5 + "references": [{ "path": "../../openapi-ts" }] 5 6 }
+3 -9
packages/openapi-ts-tests/tsconfig.base.json
··· 1 1 { 2 + "extends": "../../tsconfig.base.json", 2 3 "compilerOptions": { 3 - "esModuleInterop": true, 4 - "module": "ESNext", 5 - "moduleResolution": "Bundler", 4 + "declaration": false, 5 + "declarationMap": false, 6 6 "noEmit": true, 7 - "noImplicitAny": true, 8 7 "noImplicitOverride": true, 9 8 "noImplicitReturns": true, 10 - "noUncheckedIndexedAccess": true, 11 9 "noUnusedLocals": true, 12 10 "noUnusedParameters": true, 13 - "resolveJsonModule": true, 14 - "skipLibCheck": true, 15 - "strict": true, 16 - "target": "ES2022", 17 11 "types": ["vitest/globals"], 18 12 "useUnknownInCatchVariables": false 19 13 }
+2 -1
packages/openapi-ts-tests/zod/v3/tsconfig.json
··· 1 1 { 2 2 "extends": "../../tsconfig.base.json", 3 3 "include": ["test/**/*", "__snapshots__/**/*"], 4 - "exclude": [".gen/**/*"] 4 + "exclude": [".gen/**/*"], 5 + "references": [{ "path": "../../../openapi-ts" }] 5 6 }
+2 -1
packages/openapi-ts-tests/zod/v4/tsconfig.json
··· 1 1 { 2 2 "extends": "../../tsconfig.base.json", 3 3 "include": ["test/**/*", "__snapshots__/**/*"], 4 - "exclude": [".gen/**/*"] 4 + "exclude": [".gen/**/*"], 5 + "references": [{ "path": "../../../openapi-ts" }] 5 6 }