Skip to content

Commit

Permalink
fix: update Jest command to use '--expose-gc' flag for better memory …
Browse files Browse the repository at this point in the history
…management
  • Loading branch information
rahulyadav-57 committed Jul 18, 2024
1 parent 50ab536 commit a7713bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/workspace/TestCases/TestCases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ const TestCases: FC<Props> = ({ 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(
Expand Down

0 comments on commit a7713bc

Please sign in to comment.