Skip to content

Commit

Permalink
Revert "ref(dx): Detect bad test runs (#77796)"
Browse files Browse the repository at this point in the history
This reverts commit fe7a283.

Co-authored-by: scttcper <[email protected]>
  • Loading branch information
getsentry-bot and scttcper committed Sep 27, 2024
1 parent 89c3530 commit 540274c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@ const {
GITHUB_PR_REF,
GITHUB_RUN_ID,
GITHUB_RUN_ATTEMPT,
USING_YARN_TEST,
} = process.env;

if (USING_YARN_TEST === undefined) {
// eslint-disable-next-line no-console
console.error('Do not run `jest` directly, use `yarn test` instead!');
process.exit();
}

const IS_MASTER_BRANCH = GITHUB_PR_REF === 'refs/heads/master';

const BALANCE_RESULTS_PATH = path.resolve(
Expand Down
3 changes: 0 additions & 3 deletions scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ process.env.NODE_ENV = 'test';
process.env.PUBLIC_URL = '';
process.env.TZ = 'America/New_York';

// Marker to indicate that we've correctly ran with `yarn test`.
process.env.USING_YARN_TEST = true;

// Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the future, promise rejections that are not handled will
// terminate the Node.js process with a non-zero exit code.
Expand Down

0 comments on commit 540274c

Please sign in to comment.