diff --git a/src/components/workspace/TestCases/TestCases.tsx b/src/components/workspace/TestCases/TestCases.tsx index 257ec9c..15e2c72 100644 --- a/src/components/workspace/TestCases/TestCases.tsx +++ b/src/components/workspace/TestCases/TestCases.tsx @@ -131,8 +131,9 @@ const TestCases: FC = ({ projectId }) => { createLog('Running test cases...', 'info', true); await _webcontainerInstance.fs.writeFile(filePath, codeBase); - const response = await _webcontainerInstance.spawn('npx', [ - 'jest', + const response = await _webcontainerInstance.spawn('node', [ + '--expose-gc', + './node_modules/.bin/jest', filePath, ]); await response.output.pipeTo(