ConusAI vendor 81941888f

This commit is contained in:
ConusAI vendor 81941888f
2026-10-07 08:47:51 +00:00
commit c3c6526952
135 changed files with 13010 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
export default defineConfig({
resolve: {
alias: [
{ find: /^@\//, replacement: `${fileURLToPath(new URL('./src', import.meta.url))}/` },
{ find: /^server-only$/, replacement: fileURLToPath(new URL('./test/server-only.ts', import.meta.url)) },
],
},
// Next's tsconfig sets jsx to preserve; the tests transform JSX themselves.
oxc: { jsx: { runtime: 'automatic' } },
test: {
include: ['src/**/*.test.{ts,tsx}'],
environment: 'node',
// The SDK's dist imports sibling modules without extensions, which plain Node ESM rejects.
server: { deps: { inline: [/@conusai-sdk\//] } },
},
})