A social knowledge tool for researchers built on ATProto
1/** @type {import('ts-jest').JestConfigWithTsJest} */
2module.exports = {
3 preset: 'ts-jest',
4 testEnvironment: 'node',
5 // Optional: If you have tests outside of src/ or tests/
6 // roots: ['<rootDir>/src', '<rootDir>/tests'],
7 // Optional: Match test files (adjust if your naming convention differs)
8 testMatch: ['**/?(*.)+(spec|test).+(ts|tsx)'],
9 // Ignore test files in annotations module
10 testPathIgnorePatterns: [
11 '/node_modules/',
12 '/src/modules/annotations/.*\\.(spec|test)\\.(ts|tsx)$',
13 ],
14 // Optional: Module file extensions for importing
15 moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
16 // Map 'src/*' paths to '<rootDir>/src/*'
17 moduleNameMapper: {
18 '^src/(.*)$': '<rootDir>/src/$1',
19 },
20 // Increase timeout for tests that use containers
21 testTimeout: 60000,
22};