Skip to content

Commit

Permalink
Revert "fix: patch Jest memory leak by calling GC afterEach"
Browse files Browse the repository at this point in the history
This reverts commit 97ee91a.
  • Loading branch information
trivikr committed Oct 5, 2021
1 parent 7aa2dbc commit e4f1886
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ module.exports = {
],
testPathIgnorePatterns: ["/node_modules/", "<rootDir>/clients/client-.*"],
coveragePathIgnorePatterns: ["/node_modules/", "<rootDir>/clients/client-.*", "/__fixtures__/"],
setupFilesAfterEnv: ["<rootDir>/scripts/jest/forceGlobalGc.js"],
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build:all": "yarn build:crypto-dependencies && lerna run build",
"build-documentation": "yarn remove-documentation && typedoc",
"pretest:all": "yarn build:all",
"test:all": "node --expose-gc ./node_modules/.bin/jest --coverage --passWithNoTests && lerna run test --scope '@aws-sdk/{fetch-http-handler,hash-blob-browser}'",
"test:all": "jest --coverage --passWithNoTests && lerna run test --scope '@aws-sdk/{fetch-http-handler,hash-blob-browser}'",
"test:functional": "jest --config tests/functional/jest.config.js --passWithNoTests",
"test:integration-legacy": "cucumber-js --fail-fast",
"test:integration": "jest --config jest.config.integ.js --passWithNoTests",
Expand Down Expand Up @@ -127,4 +127,4 @@
],
"**/*.{ts,js,md,json}": "prettier --write"
}
}
}
3 changes: 0 additions & 3 deletions scripts/jest/forceGlobalGc.js

This file was deleted.

0 comments on commit e4f1886

Please sign in to comment.