Files
copilotkit__copilotkit/packages/v1/cli/jest.config.js
Jordan Ritter bee70690bb feat: move CLI package from CopilotCloud into monorepo
Migrate the copilotkit CLI (npx copilotkit create/init/dev) from
CopilotCloud into packages/v1/cli. TEMPLATE_REPOS updated to use
monorepo subdirectory sparse checkout for all CopilotKit-owned
templates, with tarball fallback for external repos (ag2).
2026-03-12 13:06:03 -07:00

17 lines
537 B
JavaScript

export default {
preset: 'ts-jest/presets/default-esm',
extensionsToTreatAsEsm: ['.ts'],
transform: {
'^.+\\.ts$': ['ts-jest', { useESM: true }],
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
'^chalk$': '<rootDir>/test/__mocks__/chalk.js',
'^ora$': '<rootDir>/test/__mocks__/ora.js',
},
testMatch: ['**/test/**/*.test.ts'],
collectCoverageFrom: ['src/**/*.ts', '!src/**/*.d.ts'],
testEnvironment: 'node',
testPathIgnorePatterns: ['test/commands/dev.test.ts', 'test/commands/tunnel.test.ts'],
}