mirror of
https://github.com/sst/opencode.git
synced 2025-08-30 17:57:25 +00:00
23 lines
612 B
TypeScript
23 lines
612 B
TypeScript
import type { JestConfigWithTsJest } from 'ts-jest';
|
|
|
|
const config: JestConfigWithTsJest = {
|
|
preset: 'ts-jest/presets/default-esm',
|
|
testEnvironment: 'node',
|
|
transform: {
|
|
'^.+\\.(t|j)sx?$': ['@swc/jest', { sourceMaps: 'inline' }],
|
|
},
|
|
moduleNameMapper: {
|
|
'^@opencode-ai/sdk$': '<rootDir>/src/index.ts',
|
|
'^@opencode-ai/sdk/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
modulePathIgnorePatterns: [
|
|
'<rootDir>/ecosystem-tests/',
|
|
'<rootDir>/dist/',
|
|
'<rootDir>/deno/',
|
|
'<rootDir>/deno_tests/',
|
|
'<rootDir>/packages/',
|
|
],
|
|
testPathIgnorePatterns: ['scripts'],
|
|
};
|
|
|
|
export default config;
|