@agent-wiki/mcp 0.19.0 → 0.20.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/cobol/__tests__/call-boundary-lineage.test.js +475 -0
- package/dist/cobol/__tests__/call-boundary-lineage.test.js.map +1 -1
- package/dist/cobol/__tests__/db2-table-lineage.test.js +453 -3
- package/dist/cobol/__tests__/db2-table-lineage.test.js.map +1 -1
- package/dist/cobol/__tests__/extractors.test.js +74 -0
- package/dist/cobol/__tests__/extractors.test.js.map +1 -1
- package/dist/cobol/__tests__/lexer.test.js +42 -0
- package/dist/cobol/__tests__/lexer.test.js.map +1 -1
- package/dist/cobol/__tests__/variable-tracer.test.js +306 -0
- package/dist/cobol/__tests__/variable-tracer.test.js.map +1 -1
- package/dist/cobol/call-boundary-lineage.d.ts +28 -2
- package/dist/cobol/call-boundary-lineage.d.ts.map +1 -1
- package/dist/cobol/call-boundary-lineage.js +147 -9
- package/dist/cobol/call-boundary-lineage.js.map +1 -1
- package/dist/cobol/db2-table-lineage.d.ts +52 -3
- package/dist/cobol/db2-table-lineage.d.ts.map +1 -1
- package/dist/cobol/db2-table-lineage.js +143 -6
- package/dist/cobol/db2-table-lineage.js.map +1 -1
- package/dist/cobol/extractors.d.ts.map +1 -1
- package/dist/cobol/extractors.js +24 -10
- package/dist/cobol/extractors.js.map +1 -1
- package/dist/cobol/field-lineage.d.ts.map +1 -1
- package/dist/cobol/field-lineage.js +30 -6
- package/dist/cobol/field-lineage.js.map +1 -1
- package/dist/cobol/graph.d.ts +8 -0
- package/dist/cobol/graph.d.ts.map +1 -1
- package/dist/cobol/graph.js +10 -0
- package/dist/cobol/graph.js.map +1 -1
- package/dist/cobol/lexer.d.ts.map +1 -1
- package/dist/cobol/lexer.js +11 -0
- package/dist/cobol/lexer.js.map +1 -1
- package/dist/cobol/parser.d.ts.map +1 -1
- package/dist/cobol/parser.js +6 -0
- package/dist/cobol/parser.js.map +1 -1
- package/dist/cobol/plugin.d.ts.map +1 -1
- package/dist/cobol/plugin.js +7 -2
- package/dist/cobol/plugin.js.map +1 -1
- package/dist/cobol/types.d.ts +10 -0
- package/dist/cobol/types.d.ts.map +1 -1
- package/dist/cobol/variable-tracer.d.ts.map +1 -1
- package/dist/cobol/variable-tracer.js +100 -10
- package/dist/cobol/variable-tracer.js.map +1 -1
- package/dist/code-analysis.d.ts +8 -1
- package/dist/code-analysis.d.ts.map +1 -1
- package/dist/code-analysis.js.map +1 -1
- package/dist/evidence-migration.d.ts.map +1 -1
- package/dist/evidence-migration.js +15 -3
- package/dist/evidence-migration.js.map +1 -1
- package/dist/evidence-migration.test.js +4 -0
- package/dist/evidence-migration.test.js.map +1 -1
- package/dist/evidence-write-log.d.ts +21 -0
- package/dist/evidence-write-log.d.ts.map +1 -1
- package/dist/evidence-write-log.js.map +1 -1
- package/dist/server.js +3 -3
- package/dist/server.js.map +1 -1
- package/dist/wiki.d.ts +43 -0
- package/dist/wiki.d.ts.map +1 -1
- package/dist/wiki.js +85 -7
- package/dist/wiki.js.map +1 -1
- package/dist/wiki.test.js +255 -0
- package/dist/wiki.test.js.map +1 -1
- package/package.json +1 -1
package/dist/wiki.test.js
CHANGED
|
@@ -101,6 +101,42 @@ describe("Wiki.loadConfig", () => {
|
|
|
101
101
|
const wiki = new Wiki(TEST_ROOT, wsDir);
|
|
102
102
|
expect(wiki.config.workspace).toBe(wsDir);
|
|
103
103
|
});
|
|
104
|
+
it("cobol.systemCalleesAdditional defaults to [] when no config sets it (#26 phase 2)", () => {
|
|
105
|
+
const wiki = freshWiki();
|
|
106
|
+
expect(wiki.config.cobol.systemCalleesAdditional).toEqual([]);
|
|
107
|
+
});
|
|
108
|
+
it("cobol.systemCalleesAdditional reads from .agent-wiki.yaml main config (#26 phase 2)", () => {
|
|
109
|
+
Wiki.init(TEST_ROOT);
|
|
110
|
+
writeFileSync(join(TEST_ROOT, ".agent-wiki.yaml"), "version: '2'\n"
|
|
111
|
+
+ "wiki:\n path: wiki/\n raw_path: raw/\n schemas_path: schemas/\n"
|
|
112
|
+
+ "cobol:\n systemCalleesAdditional:\n - YOURRTN1\n - YOURRTN2\n");
|
|
113
|
+
const wiki = new Wiki(TEST_ROOT);
|
|
114
|
+
expect(wiki.config.cobol.systemCalleesAdditional).toEqual(["YOURRTN1", "YOURRTN2"]);
|
|
115
|
+
});
|
|
116
|
+
it("cobol.systemCalleesAdditional from .agent-wiki.local.yaml is concatenated with main (#26 phase 2)", () => {
|
|
117
|
+
// Local file is gitignored — site-specific names go there. Loaded
|
|
118
|
+
// independently of the main config and concatenated, so users can
|
|
119
|
+
// ship a project default in `.agent-wiki.yaml` AND extend per-site
|
|
120
|
+
// without touching the committed file.
|
|
121
|
+
Wiki.init(TEST_ROOT);
|
|
122
|
+
writeFileSync(join(TEST_ROOT, ".agent-wiki.yaml"), "version: '2'\n"
|
|
123
|
+
+ "wiki:\n path: wiki/\n raw_path: raw/\n schemas_path: schemas/\n"
|
|
124
|
+
+ "cobol:\n systemCalleesAdditional:\n - SHARED-RTN\n");
|
|
125
|
+
writeFileSync(join(TEST_ROOT, ".agent-wiki.local.yaml"), "cobol:\n systemCalleesAdditional:\n - SITE-LOCAL-A\n - SITE-LOCAL-B\n");
|
|
126
|
+
const wiki = new Wiki(TEST_ROOT);
|
|
127
|
+
expect(wiki.config.cobol.systemCalleesAdditional).toContain("SHARED-RTN");
|
|
128
|
+
expect(wiki.config.cobol.systemCalleesAdditional).toContain("SITE-LOCAL-A");
|
|
129
|
+
expect(wiki.config.cobol.systemCalleesAdditional).toContain("SITE-LOCAL-B");
|
|
130
|
+
expect(wiki.config.cobol.systemCalleesAdditional).toHaveLength(3);
|
|
131
|
+
});
|
|
132
|
+
it("cobol.systemCalleesAdditional works with ONLY .agent-wiki.local.yaml (no main cobol section) (#26 phase 2)", () => {
|
|
133
|
+
// The realistic deployment: `.agent-wiki.yaml` ships with no cobol
|
|
134
|
+
// section, all site-specific names live in the gitignored local file.
|
|
135
|
+
Wiki.init(TEST_ROOT); // default config has no cobol section
|
|
136
|
+
writeFileSync(join(TEST_ROOT, ".agent-wiki.local.yaml"), "cobol:\n systemCalleesAdditional:\n - SITE-ONLY-1\n");
|
|
137
|
+
const wiki = new Wiki(TEST_ROOT);
|
|
138
|
+
expect(wiki.config.cobol.systemCalleesAdditional).toEqual(["SITE-ONLY-1"]);
|
|
139
|
+
});
|
|
104
140
|
});
|
|
105
141
|
// ═══════════════════════════════════════════════════════════════════
|
|
106
142
|
// RAW LAYER
|
|
@@ -865,6 +901,225 @@ This is a test.
|
|
|
865
901
|
expect(events.filter((e) => e.page === "opinion.md")).toHaveLength(0);
|
|
866
902
|
});
|
|
867
903
|
});
|
|
904
|
+
describe("evidence-first phase 2b — hard rejection of unsupported writes", () => {
|
|
905
|
+
// The reject mode is opt-in via `evidence.rejectUnsupportedWrites`. The
|
|
906
|
+
// setupRejectMode helper mutates the config in-place after init —
|
|
907
|
+
// simpler than threading a config option through Wiki.init for these
|
|
908
|
+
// tests since the production toggle is the same surface (env var or
|
|
909
|
+
// .agent-wiki.yaml are read at config-load time).
|
|
910
|
+
function rejectWiki() {
|
|
911
|
+
const wiki = freshWiki();
|
|
912
|
+
wiki.config.evidence.rejectUnsupportedWrites = true;
|
|
913
|
+
return wiki;
|
|
914
|
+
}
|
|
915
|
+
it("passes through grounded writes (sources non-empty)", () => {
|
|
916
|
+
const wiki = rejectWiki();
|
|
917
|
+
expect(() => wiki.write("ok.md", "---\ntitle: G\nsources: [raw/x.md]\n---\nGrounded.")).not.toThrow();
|
|
918
|
+
expect(wiki.read("ok.md")?.frontmatter.unsupported).toBeUndefined();
|
|
919
|
+
});
|
|
920
|
+
it("passes through synthesis writes (synthesis: true)", () => {
|
|
921
|
+
const wiki = rejectWiki();
|
|
922
|
+
expect(() => wiki.write("syn.md", "---\ntitle: S\nsynthesis: true\n---\nAggregated.")).not.toThrow();
|
|
923
|
+
});
|
|
924
|
+
it("passes through synthesis writes (type: synthesis)", () => {
|
|
925
|
+
const wiki = rejectWiki();
|
|
926
|
+
expect(() => wiki.write("legacy-syn.md", "---\ntitle: S\ntype: synthesis\n---\nAggregated.")).not.toThrow();
|
|
927
|
+
});
|
|
928
|
+
it("rejects fresh unsupported writes with a clear error", () => {
|
|
929
|
+
const wiki = rejectWiki();
|
|
930
|
+
expect(() => wiki.write("blocked.md", "---\ntitle: B\n---\nNo sources.")).toThrow(/wiki_write rejected/);
|
|
931
|
+
expect(wiki.read("blocked.md")).toBeNull();
|
|
932
|
+
});
|
|
933
|
+
it("logs rejected attempts to telemetry with rejected: true and rejectReason: 'fresh'", async () => {
|
|
934
|
+
const wiki = rejectWiki();
|
|
935
|
+
const { readWriteLog } = await import("./evidence-write-log.js");
|
|
936
|
+
try {
|
|
937
|
+
wiki.write("blocked.md", "---\ntitle: B\n---\nNothing.");
|
|
938
|
+
}
|
|
939
|
+
catch {
|
|
940
|
+
// expected
|
|
941
|
+
}
|
|
942
|
+
const events = readWriteLog(wiki.config.workspace);
|
|
943
|
+
const blocked = events.find((e) => e.page === "blocked.md");
|
|
944
|
+
expect(blocked?.rejected).toBe(true);
|
|
945
|
+
expect(blocked?.rejectReason).toBe("fresh");
|
|
946
|
+
});
|
|
947
|
+
it("logs rejectReason: 'legacy' on blocked re-edits of legacyUnsupported pages", async () => {
|
|
948
|
+
const wiki = rejectWiki();
|
|
949
|
+
const { readWriteLog } = await import("./evidence-write-log.js");
|
|
950
|
+
wiki.config.evidence.rejectUnsupportedWrites = false;
|
|
951
|
+
wiki.write("legacy-tel.md", "---\ntitle: L\nlegacyUnsupported: true\n---\nOld.");
|
|
952
|
+
wiki.config.evidence.rejectUnsupportedWrites = true;
|
|
953
|
+
try {
|
|
954
|
+
wiki.write("legacy-tel.md", "---\ntitle: L\n---\nStill no sources.");
|
|
955
|
+
}
|
|
956
|
+
catch {
|
|
957
|
+
// expected
|
|
958
|
+
}
|
|
959
|
+
const events = readWriteLog(wiki.config.workspace);
|
|
960
|
+
// .filter(...).at(-1) instead of .findLast() — the latter requires
|
|
961
|
+
// lib: ES2023, but the project pins ES2022. Preserves "last matching
|
|
962
|
+
// event" semantics so the test still works if a future change starts
|
|
963
|
+
// emitting telemetry for legacy seed writes.
|
|
964
|
+
const legacy = events.filter((e) => e.page === "legacy-tel.md").at(-1);
|
|
965
|
+
expect(legacy?.rejected).toBe(true);
|
|
966
|
+
expect(legacy?.rejectReason).toBe("legacy");
|
|
967
|
+
});
|
|
968
|
+
it("rejects re-edits of legacyUnsupported pages that don't resolve the legacy status", () => {
|
|
969
|
+
const wiki = rejectWiki();
|
|
970
|
+
// Seed a legacy page in warn mode (so the seed itself isn't rejected),
|
|
971
|
+
// then flip to reject mode to exercise the legacy-update path.
|
|
972
|
+
wiki.config.evidence.rejectUnsupportedWrites = false;
|
|
973
|
+
wiki.write("legacy.md", "---\ntitle: L\nlegacyUnsupported: true\n---\nOld.");
|
|
974
|
+
wiki.config.evidence.rejectUnsupportedWrites = true;
|
|
975
|
+
// Re-edit without sources or synthesis — must reject. The legacy
|
|
976
|
+
// flag is a deferral, not a permanent grant: editing forces a choice.
|
|
977
|
+
expect(() => wiki.write("legacy.md", "---\ntitle: L\n---\nRevised legacy text.")).toThrow(/legacyUnsupported/);
|
|
978
|
+
// The on-disk page is unchanged (writeFileSync is reached only after
|
|
979
|
+
// the throw site, so the legacy flag is still there for next time).
|
|
980
|
+
// Asserting on the body too — not just the flag — guards against
|
|
981
|
+
// someone moving the throw below the write in the future.
|
|
982
|
+
const after = wiki.read("legacy.md");
|
|
983
|
+
expect(after?.frontmatter.legacyUnsupported).toBe(true);
|
|
984
|
+
expect(after?.content).toContain("Old.");
|
|
985
|
+
expect(after?.content).not.toContain("Revised legacy text.");
|
|
986
|
+
});
|
|
987
|
+
it("clears legacyUnsupported when adding sources transitions a legacy page to grounded", () => {
|
|
988
|
+
const wiki = rejectWiki();
|
|
989
|
+
// Seed legacy in warn mode (reject mode would block the seed write
|
|
990
|
+
// itself since it's an unsupported submission with legacy flag).
|
|
991
|
+
wiki.config.evidence.rejectUnsupportedWrites = false;
|
|
992
|
+
wiki.write("legacy.md", "---\ntitle: L\nlegacyUnsupported: true\n---\nOld.");
|
|
993
|
+
wiki.config.evidence.rejectUnsupportedWrites = true;
|
|
994
|
+
wiki.write("legacy.md", "---\ntitle: L\nsources: [raw/x.md]\n---\nNow grounded.");
|
|
995
|
+
const after = wiki.read("legacy.md");
|
|
996
|
+
expect(after?.frontmatter.legacyUnsupported).toBeUndefined();
|
|
997
|
+
expect(after?.frontmatter.unsupported).toBeUndefined();
|
|
998
|
+
});
|
|
999
|
+
it("clears legacyUnsupported when adding synthesis: true transitions a legacy page", () => {
|
|
1000
|
+
const wiki = rejectWiki();
|
|
1001
|
+
wiki.config.evidence.rejectUnsupportedWrites = false;
|
|
1002
|
+
wiki.write("legacy.md", "---\ntitle: L\nlegacyUnsupported: true\n---\nOld.");
|
|
1003
|
+
wiki.config.evidence.rejectUnsupportedWrites = true;
|
|
1004
|
+
wiki.write("legacy.md", "---\ntitle: L\nsynthesis: true\n---\nNow synthesis.");
|
|
1005
|
+
const after = wiki.read("legacy.md");
|
|
1006
|
+
expect(after?.frontmatter.legacyUnsupported).toBeUndefined();
|
|
1007
|
+
expect(after?.frontmatter.synthesis).toBe(true);
|
|
1008
|
+
});
|
|
1009
|
+
it("default mode (warn) is unchanged — fresh unsupported writes still pass with `unsupported: true`", () => {
|
|
1010
|
+
// Sanity: rejectUnsupportedWrites defaults to false. Phase 2a behavior intact.
|
|
1011
|
+
const wiki = freshWiki();
|
|
1012
|
+
expect(wiki.config.evidence.rejectUnsupportedWrites).toBe(false);
|
|
1013
|
+
wiki.write("warned.md", "---\ntitle: W\n---\nUnsupported.");
|
|
1014
|
+
expect(wiki.read("warned.md")?.frontmatter.unsupported).toBe(true);
|
|
1015
|
+
});
|
|
1016
|
+
it("migration completes under reject mode (_bypassEvidenceClassification)", async () => {
|
|
1017
|
+
// Realistic edge case: a workspace where reject mode was flipped on
|
|
1018
|
+
// before first migration ran. Migration tags pre-existing user pages
|
|
1019
|
+
// with `legacyUnsupported: true` — without the bypass opt the
|
|
1020
|
+
// classifier would throw on those internal writes and migration
|
|
1021
|
+
// would never complete.
|
|
1022
|
+
const { migrateExistingPagesForEvidence } = await import("./evidence-migration.js");
|
|
1023
|
+
const wiki = freshWiki();
|
|
1024
|
+
// Seed pre-existing page in warn mode (typical pre-Phase-2b state).
|
|
1025
|
+
wiki.write("legacy-page.md", "---\ntitle: P\n---\nNo sources.");
|
|
1026
|
+
// Flip to reject mode and run migration — must complete without throw.
|
|
1027
|
+
wiki.config.evidence.rejectUnsupportedWrites = true;
|
|
1028
|
+
expect(() => migrateExistingPagesForEvidence(wiki, [])).not.toThrow();
|
|
1029
|
+
const after = wiki.read("legacy-page.md");
|
|
1030
|
+
expect(after?.frontmatter.legacyUnsupported).toBe(true);
|
|
1031
|
+
});
|
|
1032
|
+
it("loads rejectUnsupportedWrites from env var when set", () => {
|
|
1033
|
+
const orig = process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1034
|
+
try {
|
|
1035
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = "true";
|
|
1036
|
+
const wiki = freshWiki();
|
|
1037
|
+
expect(wiki.config.evidence.rejectUnsupportedWrites).toBe(true);
|
|
1038
|
+
}
|
|
1039
|
+
finally {
|
|
1040
|
+
if (orig === undefined)
|
|
1041
|
+
delete process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1042
|
+
else
|
|
1043
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = orig;
|
|
1044
|
+
}
|
|
1045
|
+
});
|
|
1046
|
+
it("env var = 'false' overrides any YAML / default and forces warn mode", () => {
|
|
1047
|
+
const orig = process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1048
|
+
try {
|
|
1049
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = "false";
|
|
1050
|
+
const wiki = freshWiki();
|
|
1051
|
+
expect(wiki.config.evidence.rejectUnsupportedWrites).toBe(false);
|
|
1052
|
+
}
|
|
1053
|
+
finally {
|
|
1054
|
+
if (orig === undefined)
|
|
1055
|
+
delete process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1056
|
+
else
|
|
1057
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = orig;
|
|
1058
|
+
}
|
|
1059
|
+
});
|
|
1060
|
+
it("env var is case-insensitive — 'TRUE' enables reject mode", () => {
|
|
1061
|
+
const orig = process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1062
|
+
try {
|
|
1063
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = "TRUE";
|
|
1064
|
+
const wiki = freshWiki();
|
|
1065
|
+
expect(wiki.config.evidence.rejectUnsupportedWrites).toBe(true);
|
|
1066
|
+
}
|
|
1067
|
+
finally {
|
|
1068
|
+
if (orig === undefined)
|
|
1069
|
+
delete process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1070
|
+
else
|
|
1071
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = orig;
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
it("env var is case-insensitive — 'False' force-disables reject mode", () => {
|
|
1075
|
+
const orig = process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1076
|
+
try {
|
|
1077
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = "False";
|
|
1078
|
+
const wiki = freshWiki();
|
|
1079
|
+
expect(wiki.config.evidence.rejectUnsupportedWrites).toBe(false);
|
|
1080
|
+
}
|
|
1081
|
+
finally {
|
|
1082
|
+
if (orig === undefined)
|
|
1083
|
+
delete process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1084
|
+
else
|
|
1085
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = orig;
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
it("loads rejectUnsupportedWrites from .agent-wiki.yaml when env var is unset", () => {
|
|
1089
|
+
const orig = process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1090
|
+
delete process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1091
|
+
try {
|
|
1092
|
+
// Init creates the default config; overwrite with one that has
|
|
1093
|
+
// reject mode enabled, then construct a fresh Wiki to re-parse.
|
|
1094
|
+
Wiki.init(TEST_ROOT);
|
|
1095
|
+
writeFileSync(join(TEST_ROOT, ".agent-wiki.yaml"), "version: '2'\n"
|
|
1096
|
+
+ "wiki:\n path: wiki/\n raw_path: raw/\n schemas_path: schemas/\n"
|
|
1097
|
+
+ "evidence:\n reject_unsupported_writes: true\n");
|
|
1098
|
+
const wiki = new Wiki(TEST_ROOT);
|
|
1099
|
+
expect(wiki.config.evidence.rejectUnsupportedWrites).toBe(true);
|
|
1100
|
+
}
|
|
1101
|
+
finally {
|
|
1102
|
+
if (orig !== undefined)
|
|
1103
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = orig;
|
|
1104
|
+
}
|
|
1105
|
+
});
|
|
1106
|
+
it("YAML non-boolean values (e.g. 'yes', 1) do NOT enable reject mode", () => {
|
|
1107
|
+
const orig = process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1108
|
+
delete process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED;
|
|
1109
|
+
try {
|
|
1110
|
+
Wiki.init(TEST_ROOT);
|
|
1111
|
+
writeFileSync(join(TEST_ROOT, ".agent-wiki.yaml"), "version: '2'\n"
|
|
1112
|
+
+ "wiki:\n path: wiki/\n raw_path: raw/\n schemas_path: schemas/\n"
|
|
1113
|
+
+ "evidence:\n reject_unsupported_writes: 'yes'\n");
|
|
1114
|
+
const wiki = new Wiki(TEST_ROOT);
|
|
1115
|
+
expect(wiki.config.evidence.rejectUnsupportedWrites).toBe(false);
|
|
1116
|
+
}
|
|
1117
|
+
finally {
|
|
1118
|
+
if (orig !== undefined)
|
|
1119
|
+
process.env.AGENT_WIKI_EVIDENCE_REJECT_UNSUPPORTED = orig;
|
|
1120
|
+
}
|
|
1121
|
+
});
|
|
1122
|
+
});
|
|
868
1123
|
});
|
|
869
1124
|
describe("wiki.delete", () => {
|
|
870
1125
|
beforeEach(cleanUp);
|