Skip to content

Commit

Permalink
test: minor test flakiness (#611)
Browse files Browse the repository at this point in the history
* chore: bring back coverage

* revert: .gitignore

* chore: try detecting open handles

* revert: restore jest flags

* chore: try this?
  • Loading branch information
kanadgupta authored Sep 21, 2022
1 parent 70b7f4d commit 2880fa3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/helpers/get-gha-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import * as getPkgVersion from '../../src/lib/getPkgVersion';

import getGitRemoteMock from './get-git-mock';

const testWorkingDir = process.cwd();

/**
* A helper function for setting up tests for our GitHub Action onboarding.
*
Expand Down Expand Up @@ -44,4 +46,5 @@ export function after() {
configstore.clear();
delete process.env.TEST_CREATEGHA;
jest.clearAllMocks();
process.chdir(testWorkingDir);
}

0 comments on commit 2880fa3

Please sign in to comment.