-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.objects.js
More file actions
39 lines (39 loc) · 1.19 KB
/
jest.config.objects.js
File metadata and controls
39 lines (39 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
testTimeout: 300000, // 5 minutes for smoke tests
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest', { sourceMaps: 'inline' }],
},
moduleNameMapper: {
'^@runloop/api-client$': '<rootDir>/src/sdk.ts',
'^@runloop/api-client/_shims/auto/(.*)$': '<rootDir>/src/_shims/auto/$1-node',
'^@runloop/api-client/(.*)$': '<rootDir>/src/$1',
},
modulePathIgnorePatterns: [
'<rootDir>/ecosystem-tests/',
'<rootDir>/dist/',
'<rootDir>/deno/',
'<rootDir>/deno_tests/',
],
testMatch: ['**/tests/smoketests/object-oriented/**/*.test.ts'],
collectCoverageFrom: [
'src/sdk/**/*.ts',
'src/sdk.ts',
'!src/sdk/index.ts',
'!**/*.d.ts',
'!**/node_modules/**',
],
coverageDirectory: 'coverage-objects',
coverageReporters: ['text', 'lcov', 'json-summary', 'html'],
coverageThreshold: {
global: {
functions: 100,
},
},
collectCoverage: true,
displayName: 'Object Coverage Tests',
// Parallel execution settings
maxWorkers: '50%', // Use 50% of available CPU cores for parallel execution
maxConcurrency: 5, // Allow up to 5 test files to run concurrently
};