Round 2 for #1626 per sage-0314: F1a setter refuses a non-plain prototype, F1b organization writer validates and logs JSON.parse(bytes), F2 loader refuses unreadable paths, README top-level-code limit, control run. Gate 591/0, 0 skipped; controls pass; mutants 47/47 killed (slot sage-0316). Candidate manifest sha256 466c835f7dce79d20c7ab74c197a52b70e7fdeb0efae0456222dc6d0a633f219, 14 paths on base 0bdd573ff; no commit in base..1376caab9 touches them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
52 lines
2.7 KiB
Plaintext
52 lines
2.7 KiB
Plaintext
✔ REQ-PLUG-1 fixture modules of each kind switch on from a test organization file, no core file changed (6.925358ms)
|
||
✔ REQ-PLUG-1 a name not matching ^[a-z][a-z0-9-]*$ refuses and keeps the old setting (3.328723ms)
|
||
✔ REQ-PLUG-1 a missing module directory or index.mjs refuses and keeps the old setting (3.325273ms)
|
||
✔ REQ-PLUG-1 a symlinked module directory or index.mjs refuses and keeps the old setting (2.474962ms)
|
||
✔ REQ-PLUG-1 a symlinked kind directory refuses and keeps the old setting (2.163341ms)
|
||
✖ REQ-PLUG-1 a symlinked packages/plugins refuses (run with --preserve-symlinks so the path keeps it) (27.310415ms)
|
||
✔ REQ-PLUG-1 index.mjs swapped for a symlink after the lstat checks refuses at the realpath check (2.626566ms)
|
||
✔ REQ-PLUG-1 a path that can't be read refuses as unreadable, is logged and keeps the old setting (2.235051ms)
|
||
✔ REQ-PLUG-1 a path that becomes unreadable after the lstat checks refuses at either realpath (2.358967ms)
|
||
✔ REQ-PLUG-1 a module that fails to load refuses and keeps the old setting (2.946526ms)
|
||
✔ REQ-PLUG-1 a missing export refuses and keeps the old setting (3.874281ms)
|
||
✔ REQ-PLUG-1 a different interface version refuses and keeps the old setting (2.41141ms)
|
||
✔ REQ-PLUG-1 a kind refused on its first load has nothing switched on, and the log names kind and name (1.707919ms)
|
||
✔ REQ-PLUG-1 the setting's shape: unknown kinds refuse alone, a bad whole setting keeps everything (2.910123ms)
|
||
✔ REQ-PLUG-1 loads run one at a time, so the last requested setting wins (102.4569ms)
|
||
✔ REQ-PLUG-1 the loader needs a log callback (1.025233ms)
|
||
ℹ tests 16
|
||
ℹ suites 0
|
||
ℹ pass 15
|
||
ℹ fail 1
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 221.688252
|
||
|
||
✖ failing tests:
|
||
|
||
test at packages/plugins/tests/loader.test.mjs:99:1
|
||
✖ REQ-PLUG-1 a symlinked packages/plugins refuses (run with --preserve-symlinks so the path keeps it) (27.310415ms)
|
||
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
|
||
+ actual - expected
|
||
|
||
+ [
|
||
+ 'meter'
|
||
+ ]
|
||
- []
|
||
|
||
at TestContext.<anonymous> (file:///home/jwoltje/dewey-scratch/r131/wt/packages/plugins/tests/loader.test.mjs:114:10)
|
||
at Test.runInAsyncScope (node:async_hooks:226:14)
|
||
at Test.run (node:internal/test_runner/test:1402:25)
|
||
at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
||
at Test.postRun (node:internal/test_runner/test:1542:19)
|
||
at Test.run (node:internal/test_runner/test:1467:12)
|
||
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
|
||
generatedMessage: true,
|
||
code: 'ERR_ASSERTION',
|
||
actual: [ 'meter' ],
|
||
expected: [],
|
||
operator: 'deepStrictEqual',
|
||
diff: 'simple'
|
||
}
|