fix(node): mirror Claude async rewake metadata
This commit is contained in:
1 parent
2a4e62f0a3
commit
45f6ee076b
4 files changed
+46
-3
No files matched your search
@@ -10,7 +10,22 @@ const claudeBinary = process.env.ELYDORA_CLAUDE_BINARY;
|
||||
test('official Claude Code accepts the installed user hook contract', {
|
||||
skip: claudeBinary ? false : 'set ELYDORA_CLAUDE_BINARY to the official Claude Code executable',
|
||||
}, async () => {
|
||||
const fixture = await createFixture();
|
||||
const fixture = await createFixture({
|
||||
settings: {
|
||||
hooks: {
|
||||
Stop: [{
|
||||
hooks: [{
|
||||
type: 'command',
|
||||
command: process.execPath,
|
||||
args: ['--version'],
|
||||
asyncRewake: true,
|
||||
rewakeMessage: 'Background validation failed',
|
||||
rewakeSummary: 'Validation feedback',
|
||||
}],
|
||||
}],
|
||||
},
|
||||
},
|
||||
});
|
||||
try {
|
||||
assert.equal((await fixture.install()).code, 0);
|
||||
const environment = {
|
||||
|
||||
Reference in new issue
Block a user