test(01-07): cover complete event mode matrix

- Verify unmatched triggers do not affect cut or reduction results.
- Cover unknown ids, hook trigger mapping, coordinates, and source environments.
This commit is contained in:
unanmed 2026-09-09 00:19:47 +08:00
parent 22056140bd
commit ff41ab3d6c

View File

@ -346,6 +346,18 @@ describe('event execute modes and reductions', () => {
{ custom: {} }
)
).resolves.toBe(false);
fixture.executor.setReduce(modules.EventReduceMode.OrReduce);
await expect(
fixture.executor.execute([invocation('wrong-trigger', enter)], {
custom: {}
})
).resolves.toBe(false);
fixture.executor.setReduce(modules.EventReduceMode.AndReduce);
await expect(
fixture.executor.execute([invocation('wrong-trigger', enter)], {
custom: {}
})
).resolves.toBe(true);
});
it('warns for unknown ids and continues with valid events', async () => {