mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-11-03 19:43:52 +00:00 
			
		
		
		
	* feat: support web document and cypress test * fix: support blocks * fix: support table and outline * fix: update nginx
		
			
				
	
	
		
			20 lines
		
	
	
		
			676 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			676 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { compilerOptions } = require('./tsconfig.json');
 | 
						|
const { pathsToModuleNameMapper } = require('ts-jest');
 | 
						|
const esModules = ['lodash-es', 'nanoid'].join('|');
 | 
						|
 | 
						|
/** @type {import('ts-jest').JestConfigWithTsJest} */
 | 
						|
module.exports = {
 | 
						|
  preset: 'ts-jest',
 | 
						|
  testEnvironment: 'node',
 | 
						|
  roots: ['<rootDir>'],
 | 
						|
  modulePaths: [compilerOptions.baseUrl],
 | 
						|
  moduleNameMapper: {
 | 
						|
    ...pathsToModuleNameMapper(compilerOptions.paths),
 | 
						|
    '^lodash-es(/(.*)|$)': 'lodash$1',
 | 
						|
    '^nanoid(/(.*)|$)': 'nanoid$1',
 | 
						|
  },
 | 
						|
  'transform': {
 | 
						|
    '(.*)/node_modules/nanoid/.+\\.(j|t)sx?$': 'ts-jest',
 | 
						|
  },
 | 
						|
  'transformIgnorePatterns': [`/node_modules/(?!${esModules})`],
 | 
						|
}; |