update jest.config.ts
This commit is contained in:
		
							
								
								
									
										15
									
								
								jest.config.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								jest.config.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
import type { Config } from 'jest';
 | 
			
		||||
 | 
			
		||||
const config: Config = {
 | 
			
		||||
  preset: 'ts-jest',
 | 
			
		||||
  testEnvironment: 'node',
 | 
			
		||||
  extensionsToTreatAsEsm: ['.ts'],
 | 
			
		||||
  transform: {
 | 
			
		||||
    '^.+\\.ts$': ['ts-jest', { useESM: true }],
 | 
			
		||||
  },
 | 
			
		||||
  moduleNameMapper: {
 | 
			
		||||
    '^(\\.{1,2}/.*)\\.js$': '$1',
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export default config;
 | 
			
		||||
		Reference in New Issue
	
	Block a user