Skip to content

Commit 6fb2815

Browse files
committed
fix: configure shorter user-data-dir to avoid macOS socket path limit
macOS has a 103 character limit for Unix socket paths. The nested directory structure in GitHub Actions (mini-typescript-hero/mini-typescript-hero/mini-typescript-hero) was exceeding this limit, causing ENOTSOCK errors. Solution: Use /tmp/vscode-test-data as the VSCode test user data directory.
1 parent 6900b82 commit 6fb2815

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mini-typescript-hero/.vscode-test.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ import { defineConfig } from '@vscode/test-cli';
22

33
export default defineConfig({
44
files: 'out/test/**/*.test.js',
5+
// Use shorter user-data-dir to avoid macOS socket path length issues (103 char limit)
6+
launchArgs: ['--user-data-dir=/tmp/vscode-test-data'],
57
});

0 commit comments

Comments
 (0)