Skip to content

Commit a681f7e

Browse files
committed
CCM-10057: user transfer data migration
1 parent 632f64e commit a681f7e

File tree

22 files changed

+8873
-39
lines changed

22 files changed

+8873
-39
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dist
3838
# misc
3939
.DS_Store
4040
*.pem
41+
data-migration/user-transfer/backups/
4142

4243
# debug
4344
npm-debug.log*
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"../../.eslintrc"
4+
]
5+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* For a detailed explanation regarding each configuration property, visit:
3+
* https://jestjs.io/docs/configuration
4+
*/
5+
6+
import type { Config } from 'jest';
7+
import { pathsToModuleNameMapper } from 'ts-jest';
8+
import { compilerOptions } from './tsconfig.json';
9+
10+
const config: Config = {
11+
preset: 'ts-jest',
12+
13+
// Automatically clear mock calls, instances, contexts and results before every test
14+
clearMocks: true,
15+
16+
// Indicates whether the coverage information should be collected while executing the test
17+
collectCoverage: true,
18+
19+
// The directory where Jest should output its coverage files
20+
coverageDirectory: './.reports/unit/coverage',
21+
22+
// Indicates which provider should be used to instrument code for coverage
23+
coverageProvider: 'v8',
24+
25+
coverageThreshold: {
26+
global: {
27+
branches: 100,
28+
functions: 100,
29+
lines: 100,
30+
statements: -10,
31+
},
32+
},
33+
34+
collectCoverageFrom: ['src/**/*.ts*'],
35+
36+
coveragePathIgnorePatterns: ['handler.ts'],
37+
38+
// Set the absolute path for imports
39+
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
40+
prefix: '<rootDir>/',
41+
}),
42+
43+
// Use this configuration option to add custom reporters to Jest
44+
reporters: [
45+
'default',
46+
[
47+
'../../node_modules/jest-html-reporter',
48+
{
49+
pageTitle: 'Test Report',
50+
outputPath: './.reports/unit/test-report.html',
51+
includeFailureMsg: true,
52+
},
53+
],
54+
],
55+
56+
// The test environment that will be used for testing
57+
testEnvironment: 'node',
58+
59+
testPathIgnorePatterns: ['/node_modules/', '/tests/'],
60+
};
61+
62+
export default config;

0 commit comments

Comments
 (0)