mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			670 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			670 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const path = require('path');
 | 
						|
 | 
						|
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
 | 
						|
module.exports = {
 | 
						|
  testEnvironment: 'jsdom',
 | 
						|
  preset: 'ts-jest',
 | 
						|
  transform: {
 | 
						|
    '^.+\\.jsx?$': ['babel-jest', { rootMode: 'upward' }],
 | 
						|
    '^.+\\.jison$': [
 | 
						|
      path.resolve(__dirname, './src/jison/transformer.js'),
 | 
						|
      { 'token-stack': true },
 | 
						|
    ],
 | 
						|
  },
 | 
						|
  transformIgnorePatterns: ['/node_modules/(?!dagre-d3-renderer/lib|khroma).*\\.js'],
 | 
						|
  testPathIgnorePatterns: ['/node_modules/', '.cache', './cypress'],
 | 
						|
  moduleNameMapper: {
 | 
						|
    '\\.(css|scss)$': 'identity-obj-proxy',
 | 
						|
  },
 | 
						|
  moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'jison'],
 | 
						|
};
 |