def test_third_party_linter_with_invalid_eslint_path(self):

    def mock_exists(unused_path):
        return False
    exists_swap = self.swap(os.path, 'exists', mock_exists)
    with exists_swap, self.assertRaisesRegexp(SystemExit, '1'):
        js_ts_linter.ThirdPartyJsTsLintChecksManager([INVALID_SORTED_DEPENDENCIES_FILEPATH]).perform_all_lint_checks()
def test_third_party_linter_with_invalid_eslint_path(self):

    def mock_exists(unused_path):
        return False
    exists_swap = self.swap(os.path, 'exists', mock_exists)
    with exists_swap, self.assertRaisesRegexp(SystemExit, '1'):
        js_ts_linter.ThirdPartyJsTsLintChecksManager([INVALID_SORTED_DEPENDENCIES_FILEPATH]).perform_all_lint_checks()