Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/jest-balance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
env:
GITHUB_PR_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
GITHUB_PR_REF: ${{ github.event.pull_request.head.ref || github.ref }}
run: JEST_TEST_BALANCER=1 pnpm run test-ci
run: pnpm run test-ci --testResultsProcessor ./tests/js/test-balancer/index.js

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
with:
Expand Down
10 changes: 0 additions & 10 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const swcConfig: SwcOptions = {

const {
CI,
JEST_TEST_BALANCER,
CI_NODE_TOTAL,
CI_NODE_INDEX,
GITHUB_PR_SHA,
Expand All @@ -56,12 +55,6 @@ const optionalTags: {
merge_base_strategy: MERGE_BASE_STRATEGY || 'full',
};

if (!!JEST_TEST_BALANCER && !CI) {
throw new Error(
'[Operation only allowed in CI]: Jest test balancer should never be ran manually as you risk skewing the numbers - please trigger the automated github workflow at https://github.com/getsentry/sentry/actions/workflows/jest-balance.yml'
);
}

let JEST_TESTS: string[] | undefined;

// prevents forkbomb as we don't want jest --listTests --json
Expand Down Expand Up @@ -342,9 +335,6 @@ const config: Config.InitialOptions = {
moduleFileExtensions: ['js', 'ts', 'jsx', 'tsx', 'pegjs'],
globals: {},

testResultsProcessor: JEST_TEST_BALANCER
? '<rootDir>/tests/js/test-balancer/index.js'
: undefined,
reporters: ['default'],
/**
* jest.clearAllMocks() automatically called before each test
Expand Down
Loading