Skip to content

Commit cebac6d

Browse files
authored
fix(eslint-plugin-fiori-tools): fix heap OOM on macos Node 20 arm64 (#4570)
* fix(eslint-plugin-fiori-tools): fix heap OOM by switching to jest coverageProvider v8 * chore: update pnpm-lock.yaml after merging main * Delete .changeset/eslint-plugin-fiori-tools-oom-fix-v2.md
1 parent da83aa2 commit cebac6d

3 files changed

Lines changed: 3 additions & 47 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const config = require('../../jest.base');
22
module.exports = {
33
...config,
4-
// Coverage is handled by c8 wrapper for worker thread support
5-
collectCoverage: false,
4+
// coverageProvider: 'v8' overrides jest.base default ('babel'); collectCoverage: true is inherited from jest.base
5+
coverageProvider: 'v8',
66
setupFiles: ['<rootDir>/test/global-setup.ts']
77
}

packages/eslint-plugin-fiori-tools/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
"format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
2121
"lint": "eslint",
2222
"lint:fix": "eslint --fix",
23-
"test": "c8 --reporter=text --reporter=lcov --merge-async --exclude='test/**' --exclude='**/*.test.ts' --include='src/**/*.ts' cross-env NODE_OPTIONS='--experimental-vm-modules' jest --ci --forceExit --detectOpenHandles --colors --maxWorkers=2"
23+
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --ci --forceExit --detectOpenHandles --colors --maxWorkers=50%"
2424
},
2525
"devDependencies": {
26-
"c8": "^11.0.0",
2726
"cross-env": "10.1.0",
2827
"eslint": "9.39.1",
2928
"@typescript-eslint/rule-tester": "8.57.2",

pnpm-lock.yaml

Lines changed: 0 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)