Skip to content

Commit

Permalink
fix: test and also inherit in tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Dec 2, 2023
1 parent 4ed931b commit d39d706
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 26 deletions.
1 change: 0 additions & 1 deletion sdks/sdk-openai/yaml2json.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ async function main() {
}
}

// eslint-disable-next-line unicorn/prefer-top-level-await
void main()
6 changes: 3 additions & 3 deletions sdks/sdk-venice/index.spec.ts
Original file line number Diff line number Diff line change
@@ -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<paths>({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()
Expand Down
24 changes: 2 additions & 22 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
}

0 comments on commit d39d706

Please sign in to comment.