ConusAI vendor 81941888f
This commit is contained in:
@@ -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\//] } },
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user