Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: skip mercurial tests when no hg installed #9840

Merged
merged 8 commits into from
Apr 21, 2020

Conversation

dubzzz
Copy link
Contributor

@dubzzz dubzzz commented Apr 19, 2020

Summary

DISCLAIMER: Feel free to close this PR if it does not make sense.

When running yarn test-ci on my machine not having hg installed, I saw that some tests requiring hg were explicitely skipped while others were still executed.

I just applied what was done in jestChangedFiles.test.ts on another test that needs hg to run.

Test plan

The very same check is already done in jestChangedFiles.test.ts
e2e/Utils.ts Outdated Show resolved Hide resolved
e2e/Utils.ts Outdated Show resolved Hide resolved
e2e/Utils.ts Outdated Show resolved Hide resolved
dubzzz and others added 2 commits April 21, 2020 18:59
Co-Authored-By: Simen Bekkhus <sbekkhus91@gmail.com>
@dubzzz
Copy link
Contributor Author

dubzzz commented Apr 21, 2020

@SimenB This time it should be good 👍 Thanks a lot for the quick reviews, it's impressive 😄

e2e/Utils.ts Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Apr 21, 2020

Codecov Report

Merging #9840 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9840      +/-   ##
==========================================
- Coverage   64.52%   64.51%   -0.02%     
==========================================
  Files         290      290              
  Lines       12325    12325              
  Branches     3048     3048              
==========================================
- Hits         7953     7951       -2     
- Misses       3732     3733       +1     
- Partials      640      641       +1     
Impacted Files Coverage Δ
packages/expect/src/utils.ts 94.96% <0.00%> (-1.26%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3681cca...fcab960. Read the comment docs.

e2e/Utils.ts Outdated Show resolved Hide resolved
dubzzz and others added 2 commits April 21, 2020 20:07
Co-Authored-By: Simen Bekkhus <sbekkhus91@gmail.com>
@SimenB
Copy link
Member

SimenB commented Apr 21, 2020

Thanks!

@SimenB SimenB changed the title Skip hg tests when no hg installed chore: skip mercurial tests when no hg installed Apr 21, 2020
@SimenB SimenB merged commit 542959c into jestjs:master Apr 21, 2020
@dubzzz dubzzz deleted the skip-hg-test-when-no-hg branch April 21, 2020 19:39
jeysal added a commit to mmkal/jest that referenced this pull request Apr 26, 2020
…pshots

* upstream/master: (39 commits)
  Prints the Symbol name into the error message with a custom asymmetric matcher (jestjs#9888)
  Show coverage of sources related to tests in changed files (jestjs#9769)
  fix: don't /// <reference types="jest" /> (jestjs#9875)
  noCodeFrame respects noStackTrace (jestjs#9866)
  chore: update example to react-native@0.62 (jestjs#9746)
  Improve source map handling when instrumenting transformed code (jestjs#9811)
  Update .vscode/launch.json settings (jestjs#9868)
  chore: verify all packages have the same engine requirement (jestjs#9871)
  fix: pass custom cached realpath function to `resolve` (jestjs#9873)
  chore: mock stealthy-require in tests (jestjs#9855)
  chore: update resolve (jestjs#9872)
  chore: run CircleCI on node 14 (jestjs#9870)
  Add an option to vscode settings to always use workspace TS (jestjs#9869)
  fix(esm): handle parallel imports (jestjs#9858)
  chore: run CI on Node 14 (jestjs#9861)
  feat: add `@jest/globals` package for importing globals explici… (jestjs#9849)
  chore: bump resolve package (jestjs#9859)
  chore(runtime): simplify `createJestObjectFor` (jestjs#9857)
  chore: fix symlink creation failures on windows in tests (jestjs#9852)
  chore: skip mercurial tests when no hg installed (jestjs#9840)
  ...
jeysal added a commit to mmkal/jest that referenced this pull request Apr 26, 2020
…pshots

* upstream/master: (39 commits)
  Prints the Symbol name into the error message with a custom asymmetric matcher (jestjs#9888)
  Show coverage of sources related to tests in changed files (jestjs#9769)
  fix: don't /// <reference types="jest" /> (jestjs#9875)
  noCodeFrame respects noStackTrace (jestjs#9866)
  chore: update example to react-native@0.62 (jestjs#9746)
  Improve source map handling when instrumenting transformed code (jestjs#9811)
  Update .vscode/launch.json settings (jestjs#9868)
  chore: verify all packages have the same engine requirement (jestjs#9871)
  fix: pass custom cached realpath function to `resolve` (jestjs#9873)
  chore: mock stealthy-require in tests (jestjs#9855)
  chore: update resolve (jestjs#9872)
  chore: run CircleCI on node 14 (jestjs#9870)
  Add an option to vscode settings to always use workspace TS (jestjs#9869)
  fix(esm): handle parallel imports (jestjs#9858)
  chore: run CI on Node 14 (jestjs#9861)
  feat: add `@jest/globals` package for importing globals explici… (jestjs#9849)
  chore: bump resolve package (jestjs#9859)
  chore(runtime): simplify `createJestObjectFor` (jestjs#9857)
  chore: fix symlink creation failures on windows in tests (jestjs#9852)
  chore: skip mercurial tests when no hg installed (jestjs#9840)
  ...
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants