Skip to content

Unit tests for the command yarn why.#1544

Merged
sebmck merged 1 commit intoyarnpkg:masterfrom
jvhoven:features/why-unit-tests
Nov 3, 2016
Merged

Unit tests for the command yarn why.#1544
sebmck merged 1 commit intoyarnpkg:masterfrom
jvhoven:features/why-unit-tests

Conversation

@jvhoven
Copy link
Copy Markdown
Contributor

@jvhoven jvhoven commented Oct 28, 2016

Unit tests for basic functionality of yarn why.

  • Missing initial argument missingWhyDependency.
  • Too many arguments tooManyArguments.
  • Non-existing module as argument whyUnknownMatch.
  • Determines dependencies whySpecifiedSimple.
  • Determines devDependencies devDependencies.
  • Dependant module whyDependedOnSimple.
  • Hoisted module whyHoistedFromSimple. I do not know how to setup a test case for this.
  • Hoisted module whyHoistedTo.
  • Check size whyDiskSizeWithout.
  • Check size whyDiskSizeUnique.
  • Check size whyDiskSizeTransitive.
  • Check size whySharedDependencies.

And possibly later from #1524:

  • Scoped packages.

@sebmck
Copy link
Copy Markdown
Contributor

sebmck commented Nov 3, 2016

Going to merge this as-is, thank you so much! If you have any follow up tests please submit them in a new PR.

@sebmck sebmck merged commit 0e19c06 into yarnpkg:master Nov 3, 2016
Jessidhia pushed a commit to Jessidhia/yarn that referenced this pull request Nov 4, 2016
* master: (66 commits)
  Add --no-bin-links flag - fixes yarnpkg#929 (yarnpkg#1651)
  Add option to change the prefix of the global bin folder - fixes yarnpkg#630 (yarnpkg#1654)
  patterns -> filteredPatterns
  Add helpful nudge to yarnpkg/rfcs on issue template (yarnpkg#1650)
  Change reporter.log to console.log in generate-lock-entry command - fixes yarnpkg#644 (yarnpkg#1652)
  Fixed add command flag (yarnpkg#1653)
  Nested executables fix (yarnpkg#1210)
  Added short-flags for yarn add (yarnpkg#1618)
  Add name lookups to ls command - fixes yarnpkg#1599 (yarnpkg#1643)
  Disable flaky secureUrl test (yarnpkg#1644)
  Add unit tests for `yarn why`. (yarnpkg#1544)
  Refine flow type for config.generateHardModulePath (yarnpkg#1642)
  Use ~/Library/Caches as default cache location on OSX - fixes yarnpkg#1637 (yarnpkg#1638)
  Update aliases.js (yarnpkg#1635)
  Update aliases.js (yarnpkg#1634)
  Add webhook to archive AppVeyor build artifacts (yarnpkg#1631)
  Attempt to fix failing Circle CI builds (yarnpkg#1629)
  Adding 'yarn global upgrade'(Issue yarnpkg#776) (yarnpkg#1616)
  Show error message in stdout. (yarnpkg#1502)
  Nicer permission errors when trying to write global binaries - fixes yarnpkg#1578 (yarnpkg#1592)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants