This commit is contained in:
2026-08-28 23:01:52 +08:00
parent 969ff05815
commit da32a67d7f
107 changed files with 465 additions and 271 deletions
+10
View File
@@ -0,0 +1,10 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import { auditMapperScanning, repositoryRoot } from './mapper-scan-contract.mjs'
test('every production MyBatis mapper is annotated and covered by one root scan', () => {
const result = auditMapperScanning(repositoryRoot)
assert.deepEqual(result.failures, [])
assert.ok(result.persistenceModuleCount >= 10)
assert.ok(result.mapperCount >= 200)
})