Files
baiyue-firstleg/scripts/mapper-scan-contract.test.mjs
T
2026-08-28 23:01:52 +08:00

11 lines
425 B
JavaScript

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)
})