@uplink-protocol/calendar-controller
Version:
Flexible calendar and time picker API supporting both calendar, date-picker, and time-picker integrations for any JavaScript framework or library
39 lines (38 loc) • 829 B
JavaScript
export default {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
extensionsToTreatAsEsm: ['.ts'],
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx',
'json',
'node'
],
testMatch: [
'**/__tests__/**/*.(spec|test).ts',
'**/?(*.)+(spec|test).ts'
],
testPathIgnorePatterns: [
'/node_modules/',
'/dist/',
'test-utils.ts'
],
transform: {
'^.+\\.(ts|tsx|js|jsx)$': [
'ts-jest',
{
useESM: true,
tsconfig: '<rootDir>/tsconfig.test.json'
}
]
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
moduleDirectories: ['node_modules'],
transformIgnorePatterns: [
'/node_modules/(?!@uplink-protocol/core|other-esm-dependency)' // Transform ESM dependencies
]
};