diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5411ae7..480ac4e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,13 +32,13 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install Dependencies - run: npm ci + run: npm install - name: Build Packages run: npm run build - name: Run Tests - run: npm test + run: node --experimental-vm-modules node_modules/jest/bin/jest.js --forceExit --detectOpenHandles --silent - name: Run Prettier if: matrix.os == 'ubuntu-latest' diff --git a/jest.config.cjs b/jest.config.cjs index 61a24cb..93ee773 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -2,7 +2,7 @@ module.exports = { collectCoverage: true, collectCoverageFrom: ['lib/*.js', 'lib/**/*.js', '!lib/dependencies/**', '!lib/bin.js'], coverageReporters: ['html', 'lcov', 'text'], - maxConcurrency: 4, - maxWorkers: 4, + maxConcurrency: 2, + maxWorkers: 2, testTimeout: 30_000 }