Skip to content

Commit fbf65ad

Browse files
jdaltonclaude
andcommitted
Fix test-wrapper vitest path construction
Replace non-existent constants.rootNodeModulesBinPath with explicit path.join(constants.rootPath, 'node_modules', '.bin', vitestCmd). Fixes ERR_INVALID_ARG_TYPE error in test-wrapper. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent eaa5199 commit fbf65ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/test-wrapper.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ async function main() {
100100

101101
// Handle Windows vs Unix for vitest executable.
102102
const vitestCmd = WIN32 ? 'vitest.cmd' : 'vitest'
103-
const vitestPath = path.join(constants.rootNodeModulesBinPath, vitestCmd)
103+
const vitestPath = path.join(
104+
constants.rootPath,
105+
'node_modules',
106+
'.bin',
107+
vitestCmd,
108+
)
104109

105110
// Expand glob patterns in arguments.
106111
const expandedArgs = []

0 commit comments

Comments
 (0)