mirror of https://github.com/abpframework/abp
				
				
				
			
							parent
							
								
									7a14ea2bf3
								
							
						
					
					
						commit
						19c487bf8f
					
				| @ -0,0 +1,18 @@ | ||||
| module.exports = { | ||||
|   globals: { | ||||
|     'ts-jest': { | ||||
|       allowSyntheticDefaultImports: true, | ||||
|     }, | ||||
|   }, | ||||
|   transform: { | ||||
|     '^.+\\.(ts|js|html)$': 'ts-jest', | ||||
|   }, | ||||
|   moduleFileExtensions: ['ts', 'js', 'html'], | ||||
|   coverageReporters: ['html'], | ||||
|   preset: 'jest-preset-angular', | ||||
|   setupFilesAfterEnv: ['<rootDir>/test-setup.ts'], | ||||
|   snapshotSerializers: [ | ||||
|     'jest-preset-angular/AngularSnapshotSerializer.js', | ||||
|     'jest-preset-angular/HTMLCommentSerializer.js', | ||||
|   ], | ||||
| }; | ||||
| @ -0,0 +1,9 @@ | ||||
| const { pathsToModuleNameMapper } = require('ts-jest/utils'); | ||||
| const { compilerOptions } = require('./tsconfig.spec'); | ||||
| 
 | ||||
| module.exports = { | ||||
|   name: 'core', | ||||
|   testMatch: ['<rootDir>/packages/core/**/+(*.)+(spec|test).+(ts|js)?(x)'], | ||||
|   coverageDirectory: '../../coverage/libs/core', | ||||
|   moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths /*, { prefix: '<rootDir>/' } */), | ||||
| }; | ||||
| @ -1,11 +1,14 @@ | ||||
| { | ||||
|   "extends": "../../tsconfig.json", | ||||
|   "compilerOptions": { | ||||
|     "outDir": "../../out-tsc/spec", | ||||
|     "types": ["node", "jest"], | ||||
|     "emitDecoratorMetadata": true, | ||||
|     "esModuleInterop": true | ||||
|     "esModuleInterop": true, | ||||
|     "outDir": "../../dist/out-tsc", | ||||
|     "module": "commonjs", | ||||
|     "types": ["jest", "node"], | ||||
|     "paths": { | ||||
|       "@abp/ng.core/*": ["packages/core/src/lib/*"] | ||||
|     } | ||||
|   }, | ||||
|   "files": [], | ||||
|   "include": ["**/*.spec.ts", "**/*.d.ts"] | ||||
| } | ||||
|  | ||||
					Loading…
					
					
				
		Reference in new issue
	
	 mehmet-erim
						mehmet-erim