diff --git a/changelog.md b/changelog.md index 9d9a8a8..91fae0d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2025-10-10 - 2.4.1 - fix(runtime/deno) +Enable Deno runtime tests by adding required permissions and local settings + +- ts/tstest.classes.runtime.deno.ts: expanded default Deno permissions to include --allow-net, --allow-write and --sloppy-imports to allow network access, file writes and permissive JS/TS imports +- ts/tstest.classes.runtime.deno.ts: updated fallback permissions used when building the Deno command to match the new default set +- Added .claude/settings.local.json with a set of allowed local commands/permissions used for local development/CI tooling + ## 2025-10-10 - 2.4.0 - feat(runtime) Add runtime adapters, filename runtime parser and migration tool; integrate runtime selection into TsTest and add tests diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index eec6bc4..baeb9e5 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tstest', - version: '2.4.0', + version: '2.4.1', description: 'a test utility to run tests that match test/**/*.ts' } diff --git a/ts/tstest.classes.runtime.deno.ts b/ts/tstest.classes.runtime.deno.ts index f1d8543..5f54159 100644 --- a/ts/tstest.classes.runtime.deno.ts +++ b/ts/tstest.classes.runtime.deno.ts @@ -33,7 +33,13 @@ export class DenoRuntimeAdapter extends RuntimeAdapter { protected getDefaultOptions(): DenoOptions { return { ...super.getDefaultOptions(), - permissions: ['--allow-read', '--allow-env'], + permissions: [ + '--allow-read', + '--allow-env', + '--allow-net', + '--allow-write', + '--sloppy-imports', // Allow .js imports to resolve to .ts files + ], }; } @@ -81,7 +87,13 @@ export class DenoRuntimeAdapter extends RuntimeAdapter { const args: string[] = ['run']; // Add permissions - const permissions = mergedOptions.permissions || ['--allow-read', '--allow-env']; + const permissions = mergedOptions.permissions || [ + '--allow-read', + '--allow-env', + '--allow-net', + '--allow-write', + '--sloppy-imports', + ]; args.push(...permissions); // Add config file if specified