mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
bee70690bb
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).
17 lines
537 B
JavaScript
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'],
|
|
}
|