@aiready/consistency 0.21.1 → 0.21.2

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.
@@ -1,24 +1,23 @@
1
-
2
- 
3
- > @aiready/consistency@0.21.1 build /Users/pengcao/projects/aiready/packages/consistency
4
- > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
-
6
- CLI Building entry: src/cli.ts, src/index.ts
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.5.1
9
- CLI Target: es2020
10
- CJS Build start
11
- ESM Build start
12
- CJS dist/index.js 32.95 KB
13
- CJS dist/cli.js 38.60 KB
14
- CJS ⚡️ Build success in 122ms
15
- ESM dist/cli.mjs 8.83 KB
16
- ESM dist/index.mjs 3.50 KB
17
- ESM dist/chunk-YHHXE2JX.mjs 27.77 KB
18
- ESM ⚡️ Build success in 128ms
19
- DTS Build start
20
- DTS ⚡️ Build success in 10839ms
21
- DTS dist/cli.d.ts 20.00 B
22
- DTS dist/index.d.ts 3.87 KB
23
- DTS dist/cli.d.mts 20.00 B
24
- DTS dist/index.d.mts 3.87 KB
1
+
2
+ > @aiready/consistency@0.21.2 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > tsup src/index.ts src/cli.ts --format cjs,esm --dts
4
+
5
+ CLI Building entry: src/cli.ts, src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Target: es2020
9
+ CJS Build start
10
+ ESM Build start
11
+ CJS dist/cli.js 41.01 KB
12
+ CJS dist/index.js 35.42 KB
13
+ CJS ⚡️ Build success in 100ms
14
+ ESM dist/index.mjs 3.27 KB
15
+ ESM dist/cli.mjs 8.85 KB
16
+ ESM dist/chunk-ZG3KFSD3.mjs 30.58 KB
17
+ ESM ⚡️ Build success in 100ms
18
+ DTS Build start
19
+ DTS ⚡️ Build success in 7814ms
20
+ DTS dist/cli.d.ts 20.00 B
21
+ DTS dist/index.d.ts 3.94 KB
22
+ DTS dist/cli.d.mts 20.00 B
23
+ DTS dist/index.d.mts 3.94 KB
@@ -1,30 +1,59 @@
1
1
 
2
- > @aiready/consistency@0.20.23 test /Users/pengcao/projects/aiready/packages/consistency
2
+ > @aiready/consistency@0.21.1 test /Users/pengcao/projects/aiready/packages/consistency
3
3
  > vitest run
4
4
 
5
5
 
6
6
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/consistency
7
7
 
8
- ✓ src/__tests__/scope-tracker.test.ts (11 tests) 51ms
9
- ✓ src/__tests__/naming-constants.test.ts (14 tests) 34ms
10
- ✓ dist/__tests__/scoring.test.js (8 tests) 9ms
11
- ✓ src/__tests__/naming.test.ts (5 tests) 5ms
12
- ✓ src/__tests__/language-filter.test.ts (3 tests) 19ms
8
+ ✓ src/__tests__/naming-constants.test.ts (14 tests) 11ms
9
+ ✓ dist/__tests__/scoring.test.js (8 tests) 11ms
10
+ ✓ src/__tests__/scope-tracker.test.ts (11 tests) 13ms
13
11
  ✓ src/__tests__/scoring.test.ts (8 tests) 3ms
14
- ✓ src/__tests__/provider.test.ts (2 tests) 16ms
12
+ ✓ src/__tests__/language-filter.test.ts (3 tests) 6ms
15
13
  Sourcemap for "/Users/pengcao/projects/aiready/packages/consistency/dist/analyzers/naming-python.js" points to missing source files
14
+ ✓ dist/__tests__/language-filter.test.js (3 tests) 3ms
15
+ ❯ src/__tests__/naming.test.ts (5 tests | 1 failed) 6ms
16
+  × should detect single letter variables 4ms
17
+ ✓ should not detect common loop variables 0ms
18
+ ✓ should detect snake_case in TypeScript files 0ms
19
+ ✓ should not detect snake_case in non-TS/JS files 0ms
20
+ ✓ should detect vague short names 0ms
21
+ ✓ src/__tests__/provider.test.ts (2 tests) 6ms
16
22
  stdout | src/__tests__/contract.test.ts > Consistency Spoke Contract Validation > should produce output matching the SpokeOutput contract
17
23
  Consistency: Skipping unparseable file file1.ts: ENOENT: no such file or directory, open 'file1.ts'
18
24
 
19
- ✓ src/__tests__/contract.test.ts (1 test) 8ms
20
- ✓ dist/__tests__/language-filter.test.js (3 tests) 3ms
21
- ✓ dist/__tests__/analyzer.test.js (18 tests) 686ms
22
- ✓ src/__tests__/analyzer.test.ts (21 tests) 1338ms
23
- ✓ should analyze naming issues  433ms
24
- ✓ should detect minimum severity filtering  413ms
25
+ ✓ src/__tests__/contract.test.ts (1 test) 22ms
26
+ ✓ dist/__tests__/analyzer.test.js (18 tests) 834ms
27
+ ✓ should analyze naming issues  387ms
28
+ ✓ should detect minimum severity filtering  332ms
29
+ ✓ src/__tests__/analyzer.test.ts (21 tests) 1247ms
30
+ ✓ should analyze naming issues  642ms
31
+
32
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
33
+
34
+  FAIL  src/__tests__/naming.test.ts > analyzeNaming > single letter variables detection > should detect single letter variables
35
+ AssertionError: expected [ …(2) ] to have a length of 3 but got 2
36
+
37
+ - Expected
38
+ + Received
39
+
40
+ - 3
41
+ + 2
42
+
43
+  ❯ src/__tests__/naming.test.ts:25:22
44
+  23|  const issues = await analyzeNaming(['test.ts']);
45
+  24| 
46
+  25|  expect(issues).toHaveLength(3);
47
+  |  ^
48
+  26|  expect(issues[0].type).toBe('poor-naming');
49
+  27|  expect(issues[0].suggestion).toContain('single letter');
50
+
51
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
52
+
25
53
 
26
-  Test Files  11 passed (11)
27
-  Tests  94 passed (94)
28
-  Start at  15:17:51
29
-  Duration  4.64s (transform 6.09s, setup 0ms, import 18.87s, tests 2.17s, environment 1ms)
54
+  Test Files  1 failed | 10 passed (11)
55
+  Tests  1 failed | 93 passed (94)
56
+  Start at  14:03:17
57
+  Duration  4.89s (transform 10.22s, setup 0ms, import 26.32s, tests 2.16s, environment 1ms)
30
58
 
59
+  ELIFECYCLE  Test failed. See above for more details.