From d39d706edaa28f7b2c392813fdfd3b399ab5e32f Mon Sep 17 00:00:00 2001 From: Tony Xiao Date: Sat, 2 Dec 2023 09:41:55 -0800 Subject: [PATCH] fix: test and also inherit in tsconfig.json --- sdks/sdk-openai/yaml2json.js | 1 - sdks/sdk-venice/index.spec.ts | 6 +++--- tsconfig.json | 24 ++---------------------- 3 files changed, 5 insertions(+), 26 deletions(-) diff --git a/sdks/sdk-openai/yaml2json.js b/sdks/sdk-openai/yaml2json.js index 90180b8..0e3f1df 100755 --- a/sdks/sdk-openai/yaml2json.js +++ b/sdks/sdk-openai/yaml2json.js @@ -24,5 +24,4 @@ async function main() { } } -// eslint-disable-next-line unicorn/prefer-top-level-await void main() diff --git a/sdks/sdk-venice/index.spec.ts b/sdks/sdk-venice/index.spec.ts index c4d9955..65d0537 100644 --- a/sdks/sdk-venice/index.spec.ts +++ b/sdks/sdk-venice/index.spec.ts @@ -1,7 +1,7 @@ -import {createClient} from '@opensdks/core' -import type {paths} from './venice.oas' +import {initSDK} from '@opensdks/core' +import {veniceSdkDef} from './' -const venice = createClient({baseUrl: 'https://app.venice.is/api/v0'}) +const venice = initSDK(veniceSdkDef, {headers: {}}) test('healthcheck', async () => { expect(await venice.GET('/health').then((r) => r.data)).toBeTruthy() diff --git a/tsconfig.json b/tsconfig.json index bc58372..77fb2cf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,4 @@ { - "extends": "@tsconfig/strictest/tsconfig.json", - "compilerOptions": { - "target": "ES2020", - "lib": ["DOM", "DOM.Iterable", "ES2021"], - "allowJs": true, - "checkJs": false, - "exactOptionalPropertyTypes": false, - "importsNotUsedAsValues": "remove", - "noEmit": true, - "esModuleInterop": true, - "module": "ES2020", - "moduleResolution": "Node", - "resolveJsonModule": true, - "jsx": "react-jsx", - "jsxImportSource": "react", - "paths": { - "@opensdks/core": ["./packages/core/src"], - "@opensdks/core/*": ["./packages/core/src/*"] - } - }, - "include": ["env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "extends": "./tsconfig.base.json", + "include": ["**/*.ts", "**/*.tsx"] }