Files
baiyue-firstleg/scripts/mapper-scan-contract.test.mjs
T

11 lines
425 B
JavaScript
Raw Normal View History

2026-08-28 23:01:52 +08:00
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)
})