The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
/*
* Copyright 2025 Daytona Platforms Inc.
* Modified by BoxLite AI, 2025-2026
* SPDX-License-Identifier: AGPL-3.0
*/
import { fileURLToPath } from 'node:url'
export default {
displayName: 'boxlite',
preset: '../jest.preset.js',
testEnvironment: 'node',
testMatch: ['<rootDir>/src/**/*.spec.ts', '<rootDir>/src/**/*.test.ts'],
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
// uuid v14 and nanoid v5 ship ESM-only. The nx preset ignores node_modules
// from transformation, so let ts-jest down-level them.
transformIgnorePatterns: ['/node_modules/(?!(?:uuid|nanoid)/)', '/test/disposable-email-domains\\.cjs$'],
moduleNameMapper: {
'^@boxlite-ai/cloud-app-shared$': '<rootDir>/../libs/cloud-app-shared/src/index.ts',
'^@visulima/disposable-email-domains/edge$': '<rootDir>/test/disposable-email-domains.cjs',
},
moduleFileExtensions: ['ts', 'js', 'html'],
collectCoverageFrom: ['src/**/*.ts', '!src/**/*.spec.ts', '!src/**/*.d.ts'],
coverageReporters: ['text', ['lcov', { projectRoot: fileURLToPath(new URL('../..', import.meta.url)) }]],
coverageDirectory: '../../target/coverage/api',
}