chore(ci): use NODE_OPTIONS=--max_old_space_size=4096

This commit is contained in:
pooya parsa 2019-01-23 16:33:48 +03:30
parent 2a1ee96a4b
commit 45f708ce7b
2 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@ defaults: &defaults
- image: circleci/node:latest - image: circleci/node:latest
environment: environment:
NODE_ENV: test NODE_ENV: test
NODE_OPTIONS: --max_old_space_size=4096
release_branches: &release_branches release_branches: &release_branches
branches: branches:

View File

@ -20,11 +20,15 @@ steps:
displayName: 'Install dependencies' displayName: 'Install dependencies'
- script: | - script: |
set JEST_JUNIT_OUTPUT=test-fixtures-junit.xml&& yarn test:fixtures -w=2 set JEST_JUNIT_OUTPUT=test-fixtures-junit.xml &&
set NODE_OPTIONS=--max_old_space_size=4096 &&
yarn test:fixtures -w=2
displayName: 'Test: Build Fixtures' displayName: 'Test: Build Fixtures'
- script: | - script: |
set JEST_JUNIT_OUTPUT=test-unit-junit.xml&& yarn test:unit -w=2 set JEST_JUNIT_OUTPUT=test-unit-junit.xml &&
set NODE_OPTIONS=--max_old_space_size=4096 &&
yarn test:unit -w=2
displayName: 'Test: Run unit tests' displayName: 'Test: Run unit tests'
- task: PublishTestResults@2 - task: PublishTestResults@2