jest-test-lineage-reporter 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +822 -0
- package/babel.config.js +22 -0
- package/package.json +73 -0
- package/src/TestCoverageReporter.js +3307 -0
- package/src/babel-plugin-lineage-tracker.js +290 -0
- package/src/config.js +193 -0
- package/src/testSetup.js +943 -0
package/babel.config.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
presets: [
|
|
3
|
+
['@babel/preset-env', {
|
|
4
|
+
targets: {
|
|
5
|
+
node: 'current'
|
|
6
|
+
}
|
|
7
|
+
}],
|
|
8
|
+
'@babel/preset-typescript'
|
|
9
|
+
],
|
|
10
|
+
plugins: [
|
|
11
|
+
// Our custom lineage tracking plugin
|
|
12
|
+
'./src/babel-plugin-lineage-tracker.js'
|
|
13
|
+
],
|
|
14
|
+
// Only apply instrumentation in test environment
|
|
15
|
+
env: {
|
|
16
|
+
test: {
|
|
17
|
+
plugins: [
|
|
18
|
+
'./src/babel-plugin-lineage-tracker.js'
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jest-test-lineage-reporter",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"main": "src/TestCoverageReporter.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "jest",
|
|
7
|
+
"test:watch": "jest --watch",
|
|
8
|
+
"test:coverage": "jest --coverage",
|
|
9
|
+
"test:lineage": "JEST_LINEAGE_ENABLED=true jest",
|
|
10
|
+
"test:fast": "JEST_LINEAGE_ENABLED=false jest",
|
|
11
|
+
"test:performance": "JEST_LINEAGE_PERFORMANCE=true JEST_LINEAGE_QUALITY=false jest",
|
|
12
|
+
"test:quality": "JEST_LINEAGE_QUALITY=true JEST_LINEAGE_PERFORMANCE=false jest",
|
|
13
|
+
"test:mutation": "JEST_LINEAGE_MUTATION=true npm run test:lineage",
|
|
14
|
+
"test:mutation-only": "JEST_LINEAGE_ENABLED=true JEST_LINEAGE_MUTATION=true JEST_LINEAGE_PERFORMANCE=false JEST_LINEAGE_QUALITY=false jest",
|
|
15
|
+
"validate": "npm run test"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"jest",
|
|
19
|
+
"testing",
|
|
20
|
+
"coverage",
|
|
21
|
+
"reporter",
|
|
22
|
+
"lineage",
|
|
23
|
+
"test-coverage",
|
|
24
|
+
"performance",
|
|
25
|
+
"memory-analysis",
|
|
26
|
+
"test-quality",
|
|
27
|
+
"analytics",
|
|
28
|
+
"dashboard",
|
|
29
|
+
"html-report",
|
|
30
|
+
"mutation-testing",
|
|
31
|
+
"mutation-analysis",
|
|
32
|
+
"test-effectiveness"
|
|
33
|
+
],
|
|
34
|
+
"author": "Jest Test Lineage Reporter Team",
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"description": "Comprehensive test analytics platform with line-by-line coverage, performance metrics, memory analysis, and test quality scoring",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/kivancbilen/jest-test-lineage-reporter.git"
|
|
40
|
+
},
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/kivancbilen/jest-test-lineage-reporter/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/kivancbilen/jest-test-lineage-reporter#readme",
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=14.0.0",
|
|
47
|
+
"npm": ">=6.0.0"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"src/TestCoverageReporter.js",
|
|
51
|
+
"src/testSetup.js",
|
|
52
|
+
"src/babel-plugin-lineage-tracker.js",
|
|
53
|
+
"src/config.js",
|
|
54
|
+
"babel.config.js",
|
|
55
|
+
"README.md",
|
|
56
|
+
"LICENSE"
|
|
57
|
+
],
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@babel/core": "^7.23.0",
|
|
60
|
+
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
|
|
61
|
+
"@babel/preset-env": "^7.23.0",
|
|
62
|
+
"@babel/preset-typescript": "^7.23.0",
|
|
63
|
+
"@babel/types": "^7.23.0",
|
|
64
|
+
"@types/babel__core": "^7.20.0",
|
|
65
|
+
"@types/istanbul-lib-coverage": "^2.0.6",
|
|
66
|
+
"@types/jest": "^30.0.0",
|
|
67
|
+
"babel-jest": "^30.0.5",
|
|
68
|
+
"jest": "^30.0.5",
|
|
69
|
+
"ts-jest": "^29.4.0",
|
|
70
|
+
"ts-node": "^10.9.2",
|
|
71
|
+
"typescript": "^5.8.3"
|
|
72
|
+
}
|
|
73
|
+
}
|