@abseed/spectra-drift-check 0.2.0 → 0.3.0
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/dist/check.js +3 -2
- package/package.json +3 -3
package/dist/check.js
CHANGED
|
@@ -78,8 +78,9 @@ export function checkDrift(markers, snapshot, verifyMarkers = []) {
|
|
|
78
78
|
}
|
|
79
79
|
const verified = new Set(verifyMarkers.flatMap((marker) => marker.ids));
|
|
80
80
|
for (const expectation of expectations) {
|
|
81
|
-
// Only functional expectations
|
|
82
|
-
// non-functional one is a property of a build
|
|
81
|
+
// Only functional expectations become an example test that a // verifies: marker names. A
|
|
82
|
+
// non-functional one is a property of a build; an invariant verifies as a property over all
|
|
83
|
+
// states (the verify-loop's job, not a single marker) — so both are exempt from this check.
|
|
83
84
|
if (expectation.kind === 'functional' && !verified.has(expectation.id)) {
|
|
84
85
|
findings.push({ kind: 'unverified-expectation', message: `${expectation.id} (functional) — no // verifies: marker; nothing tests that the code satisfies it` });
|
|
85
86
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abseed/spectra-drift-check",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Offline drift check between a Spectra glossary and the code that implements it.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "lpezet",
|
|
7
|
-
"homepage": "https://github.com/
|
|
7
|
+
"homepage": "https://github.com/ABSeedAI/spectra/tree/main/packages/drift-check",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/ABSeedAI/spectra.git",
|
|
11
11
|
"directory": "packages/drift-check"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|