Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test: preserve hook-only ESM workflows with user module scopes

haelyraf1fafe670cea
diff --git a/tests/scripts/install-apply.test.js b/tests/scripts/install-apply.test.js
index 84fd3902e..36db330b8 100644
--- a/tests/scripts/install-apply.test.js
+++ b/tests/scripts/install-apply.test.js
@@ -1138,7 +1138,7 @@ function runTests() {
fs.writeFileSync(scriptsPackagePath, userScriptsPackage);
const firstInstall = run(
- ['--target', 'claude-project', '--profile', 'core', '--enable-hooks'],
+ ['--target', 'claude-project', '--modules', 'hooks-runtime', '--enable-hooks'],
{ cwd: projectDir, homeDir }
);
assert.strictEqual(firstInstall.code, 0, firstInstall.stderr);
@@ -1160,7 +1160,7 @@ function runTests() {
assert.match(hookResult.stderr, /no-verify/i);
const secondInstall = run(
- ['--target', 'claude-project', '--profile', 'core', '--enable-hooks'],
+ ['--target', 'claude-project', '--modules', 'hooks-runtime', '--enable-hooks'],
{ cwd: projectDir, homeDir }
);
assert.strictEqual(secondInstall.code, 0, secondInstall.stderr);
diff --git a/tests/scripts/uninstall.test.js b/tests/scripts/uninstall.test.js
index a5532a256..f5f6dd67d 100644
--- a/tests/scripts/uninstall.test.js
+++ b/tests/scripts/uninstall.test.js
@@ -152,7 +152,7 @@ function runTests() {
execFileSync(
'node',
- [INSTALL_SCRIPT, '--target', 'claude-project', '--profile', 'core', '--enable-hooks'],
+ [INSTALL_SCRIPT, '--target', 'claude-project', '--modules', 'hooks-runtime', '--enable-hooks'],
{
cwd: projectRoot,
env: {