mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			784 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			784 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
/* eslint-disable */
 | 
						|
import { readFileSync } from 'fs';
 | 
						|
 | 
						|
// Reading the SWC compilation config for the spec files
 | 
						|
const swcJestConfig = JSON.parse(
 | 
						|
  readFileSync(`${__dirname}/.spec.swcrc`, 'utf-8')
 | 
						|
);
 | 
						|
 | 
						|
// Disable .swcrc look-up by SWC core because we're passing in swcJestConfig ourselves
 | 
						|
swcJestConfig.swcrc = false;
 | 
						|
 | 
						|
export default {
 | 
						|
  displayName: '@triliumnext/desktop-e2e',
 | 
						|
  preset: '../../jest.preset.js',
 | 
						|
  globalSetup: '<rootDir>/src/support/global-setup.ts',
 | 
						|
  globalTeardown: '<rootDir>/src/support/global-teardown.ts',
 | 
						|
  setupFiles: ['<rootDir>/src/support/test-setup.ts'],
 | 
						|
  testEnvironment: 'node',
 | 
						|
  transform: {
 | 
						|
    '^.+\\.[tj]s$': ['@swc/jest', swcJestConfig],
 | 
						|
  },
 | 
						|
  moduleFileExtensions: ['ts', 'js', 'html'],
 | 
						|
  coverageDirectory: 'test-output/jest/coverage',
 | 
						|
};
 |