Skip to content

Commit

Permalink
fix: Don't run rstudio tests if rstudio config is 'N/A'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Nguyen committed Nov 19, 2021
1 parent 6165917 commit b41973a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ describe('Launch and terminate RStudio instance', () => {

// eslint-disable-next-line jest/expect-expect
it('should launch a RStudio instance', async () => {
if (setup.defaults.envTypes.rstudio.envTypeId === 'N/A') {
return;
}
// Putting checkAllRstudioWorkspaceIsTerminated check here, because putting this check in `beforeAll` will not stop executing the test if the check does fail
// https://github.com/facebook/jest/issues/2713
await checkAllRstudioWorkspaceIsTerminated();
Expand Down

0 comments on commit b41973a

Please sign in to comment.