mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-17 21:55:34 +02:00
test: preserve hook-only ESM workflows with user module scopes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user