@aiready/testability 0.7.5 → 0.7.6
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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-test.log +8 -8
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
- package/src/provider.ts +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @aiready/testability@0.7.
|
|
2
|
+
> @aiready/testability@0.7.6 build /Users/pengcao/projects/aiready/packages/testability
|
|
3
3
|
> tsup src/index.ts src/cli.ts --format cjs,esm --dts
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/cli.ts, src/index.ts
|
|
@@ -8,15 +8,15 @@ CLI tsup v8.5.1
|
|
|
8
8
|
CLI Target: es2020
|
|
9
9
|
CJS Build start
|
|
10
10
|
ESM Build start
|
|
11
|
-
CJS dist/cli.js 11.88 KB
|
|
12
11
|
CJS dist/index.js 8.62 KB
|
|
13
|
-
CJS
|
|
12
|
+
CJS dist/cli.js 11.88 KB
|
|
13
|
+
CJS ⚡️ Build success in 126ms
|
|
14
14
|
ESM dist/cli.mjs 4.33 KB
|
|
15
15
|
ESM dist/index.mjs 1.17 KB
|
|
16
16
|
ESM dist/chunk-NC2LRFVJ.mjs 6.35 KB
|
|
17
|
-
ESM ⚡️ Build success in
|
|
17
|
+
ESM ⚡️ Build success in 127ms
|
|
18
18
|
DTS Build start
|
|
19
|
-
DTS ⚡️ Build success in
|
|
19
|
+
DTS ⚡️ Build success in 10364ms
|
|
20
20
|
DTS dist/cli.d.ts 20.00 B
|
|
21
21
|
DTS dist/index.d.ts 2.42 KB
|
|
22
22
|
DTS dist/cli.d.mts 20.00 B
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @aiready/testability@0.7.
|
|
2
|
+
> @aiready/testability@0.7.5 test /Users/pengcao/projects/aiready/packages/testability
|
|
3
3
|
> vitest run
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/testability[39m
|
|
7
7
|
|
|
8
|
-
[32m✓[39m src/__tests__/types.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m
|
|
9
|
-
[32m✓[39m src/__tests__/
|
|
10
|
-
[32m✓[39m src/__tests__/
|
|
11
|
-
[32m✓[39m src/__tests__/analyzer.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m
|
|
12
|
-
[33m[2m✓[22m[39m detects test frameworks in multiple languages [33m
|
|
8
|
+
[32m✓[39m src/__tests__/types.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
9
|
+
[32m✓[39m src/__tests__/scoring.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
10
|
+
[32m✓[39m src/__tests__/provider.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 22[2mms[22m[39m
|
|
11
|
+
[32m✓[39m src/__tests__/analyzer.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 3869[2mms[22m[39m
|
|
12
|
+
[33m[2m✓[22m[39m detects test frameworks in multiple languages [33m 3833[2mms[22m[39m
|
|
13
13
|
|
|
14
14
|
[2m Test Files [22m [1m[32m4 passed[39m[22m[90m (4)[39m
|
|
15
15
|
[2m Tests [22m [1m[32m17 passed[39m[22m[90m (17)[39m
|
|
16
|
-
[2m Start at [22m
|
|
17
|
-
[2m Duration [22m
|
|
16
|
+
[2m Start at [22m 20:27:24
|
|
17
|
+
[2m Duration [22m 8.32s[2m (transform 2.13s, setup 0ms, import 10.42s, tests 3.90s, environment 0ms)[22m
|
|
18
18
|
|
package/dist/index.js
CHANGED
|
@@ -242,8 +242,8 @@ var TestabilityProvider = (0, import_core3.createProvider)({
|
|
|
242
242
|
score(output) {
|
|
243
243
|
const report = {
|
|
244
244
|
summary: output.summary,
|
|
245
|
-
rawData: output.metadata
|
|
246
|
-
recommendations: output.summary
|
|
245
|
+
rawData: output.metadata?.rawData ?? {},
|
|
246
|
+
recommendations: output.summary?.recommendations || []
|
|
247
247
|
};
|
|
248
248
|
return calculateTestabilityScore(report);
|
|
249
249
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -37,8 +37,8 @@ var TestabilityProvider = createProvider({
|
|
|
37
37
|
score(output) {
|
|
38
38
|
const report = {
|
|
39
39
|
summary: output.summary,
|
|
40
|
-
rawData: output.metadata
|
|
41
|
-
recommendations: output.summary
|
|
40
|
+
rawData: output.metadata?.rawData ?? {},
|
|
41
|
+
recommendations: output.summary?.recommendations || []
|
|
42
42
|
};
|
|
43
43
|
return calculateTestabilityScore(report);
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/testability",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "Measures how safely and verifiably AI-generated changes can be made to your codebase",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"chalk": "^5.3.0",
|
|
41
41
|
"commander": "^14.0.0",
|
|
42
42
|
"glob": "^13.0.0",
|
|
43
|
-
"@aiready/core": "0.24.
|
|
43
|
+
"@aiready/core": "0.24.6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^24.0.0",
|
package/src/provider.ts
CHANGED
|
@@ -22,7 +22,7 @@ export const TestabilityProvider = createProvider({
|
|
|
22
22
|
getResults(report): AnalysisResult[] {
|
|
23
23
|
return report.issues.map((issue) => ({
|
|
24
24
|
fileName: issue.location.file,
|
|
25
|
-
issues: [issue]
|
|
25
|
+
issues: [issue],
|
|
26
26
|
metrics: {
|
|
27
27
|
testabilityScore: report.summary.score,
|
|
28
28
|
},
|
|
@@ -37,9 +37,9 @@ export const TestabilityProvider = createProvider({
|
|
|
37
37
|
score(output) {
|
|
38
38
|
const report = {
|
|
39
39
|
summary: output.summary,
|
|
40
|
-
rawData:
|
|
41
|
-
recommendations:
|
|
42
|
-
} as
|
|
40
|
+
rawData: output.metadata?.rawData ?? {},
|
|
41
|
+
recommendations: output.summary?.recommendations || [],
|
|
42
|
+
} as TestabilityReport;
|
|
43
43
|
return calculateTestabilityScore(report);
|
|
44
44
|
},
|
|
45
45
|
});
|