Skip to content

docs: improve types for FarmhandContext #1564

docs: improve types for FarmhandContext

docs: improve types for FarmhandContext #1564

GitHub Actions / Jest Tests succeeded Apr 19, 2024 in 0s

626 passed, 0 failed and 0 skipped

Tests passed successfully

✅ reports/jest-junit.xml

626 tests were completed in 59s with 626 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/common/services/randomNumber.test.js 3✅ 250ms
src/common/utils.test.js 2✅ 296ms
src/components/AccountingView/AccountingView.test.js 6✅ 897ms
src/components/Achievement/Achievement.test.js 3✅ 434ms
src/components/AchievementsView/AchievementsView.test.js 1✅ 455ms
src/components/AnimatedNumber/AnimatedNumber.test.js 1✅ 256ms
src/components/AppBar/AppBar.test.js 1✅ 282ms
src/components/BailOutErrorBoundary/BailOutErrorBoundary.test.js 1✅ 538ms
src/components/ContextPane/ContextPane.test.js 1✅ 542ms
src/components/CowCard/Bloodline/Bloodline.test.js 1✅ 423ms
src/components/CowCard/CowCard.test.js 11✅ 23s
src/components/CowCard/Subheader/Subheader.test.js 9✅ 800ms
src/components/CowPen/CowPen.test.js 9✅ 581ms
src/components/CowPenContextMenu/CowPenContextMenu.test.js 1✅ 632ms
src/components/DebugMenu/DebugMenu.test.js 1✅ 317ms
src/components/Farmhand/Farmhand.test.js 4✅ 597ms
src/components/Farmhand/helpers/getInventoryQuantities.test.js 1✅ 213ms
src/components/FermentationRecipeList/FermentationRecipeList.test.js 2✅ 359ms
src/components/Field/Field.test.js 21✅ 5s
src/components/Home/Home.test.js 3✅ 949ms
src/components/IngredientsList/IngredientsList.test.js 3✅ 351ms
src/components/Inventory/Inventory.test.js 3✅ 544ms
src/components/Item/Item.test.js 9✅ 2s
src/components/KeybindingsView/KeybindingsView.test.js 1✅ 360ms
src/components/LogView/LogView.test.js 2✅ 306ms
src/components/Navigation/Navigation.test.js 3✅ 528ms
src/components/NotificationSystem/NotificationSystem.test.js 1✅ 352ms
src/components/OnlinePeersView/OnlinePeer/OnlinePeer.test.js 1✅ 514ms
src/components/OnlinePeersView/OnlinePeersView.test.js 1✅ 486ms
src/components/Plot/Plot.rtl.test.js 9✅ 2s
src/components/Plot/Plot.test.js 23✅ 20s
src/components/PriceEventView/PriceEventView.test.js 1✅ 523ms
src/components/ProgressBar/ProgressBar.test.js 1✅ 467ms
src/components/QuantityInput/QuantityInput.test.js 1✅ 457ms
src/components/QuickSelect/QuickSelect.test.js 1✅ 424ms
src/components/Recipe/Recipe.test.js 1✅ 406ms
src/components/SettingsView/RandomSeedInput.test.js 2✅ 516ms
src/components/SettingsView/SettingsView.test.js 1✅ 403ms
src/components/Shop/Shop.test.js 3✅ 470ms
src/components/Stage/Stage.test.js 3✅ 603ms
src/components/StatsView/StatsView.test.js 1✅ 411ms
src/components/TierPurchase/TierPurchase.test.js 11✅ 2s
src/components/Toolbelt/Toolbelt.test.js 7✅ 960ms
src/components/UpgradePurchase/UpgradePurchase.test.js 6✅ 626ms
src/components/Workshop/getUpgradesAvailable.test.js 2✅ 238ms
src/components/Workshop/Workshop.test.js 11✅ 2s
src/data/achievements.test.js 18✅ 319ms
src/factories/CoalFactory.test.js 2✅ 293ms
src/factories/OreFactory.test.js 1✅ 311ms
src/factories/ResourceFactory.test.js 4✅ 445ms
src/factories/StoneFactory.test.js 1✅ 288ms
src/game-logic/cows/cow-selection.test.js 4✅ 12s
src/game-logic/field-purchase.test.js 1✅ 3s
src/game-logic/item-purchase.test.js 1✅ 2s
src/game-logic/item-sell.test.js 1✅ 1s
src/game-logic/reducers/addExperience.test.js 2✅ 321ms
src/game-logic/reducers/addItemToInventory.test.js 5✅ 331ms
src/game-logic/reducers/adjustLoan.test.js 3✅ 328ms
src/game-logic/reducers/applyCrows.test.js 6✅ 313ms
src/game-logic/reducers/applyLoanInterest.test.js 1✅ 397ms
src/game-logic/reducers/applyPrecipitation.test.js 5✅ 293ms
src/game-logic/reducers/changeCowAutomaticHugState.test.js 4✅ 287ms
src/game-logic/reducers/changeCowBreedingPenResident.test.js 8✅ 357ms
src/game-logic/reducers/changeCowName.test.js 2✅ 337ms
src/game-logic/reducers/clearPlot.test.js 7✅ 370ms
src/game-logic/reducers/computeCowInventoryForNextDay.test.js 2✅ 191ms
src/game-logic/reducers/computeStateForNextDay.test.js 11✅ 369ms
src/game-logic/reducers/createPriceEvent.test.js 2✅ 276ms
src/game-logic/reducers/decrementItemFromInventory.test.js 3✅ 278ms
src/game-logic/reducers/fertilizePlot.test.js 9✅ 377ms
src/game-logic/reducers/forRange.test.js 1✅ 310ms
src/game-logic/reducers/generatePriceEvents.test.js 3✅ 536ms
src/game-logic/reducers/harvestPlot.test.js 11✅ 447ms
src/game-logic/reducers/hugCow.test.js 3✅ 329ms
src/game-logic/reducers/incrementPlotContentAge.test.js 4✅ 523ms
src/game-logic/reducers/makeFermentationRecipe.test.js 4✅ 294ms
src/game-logic/reducers/makeRecipe.test.js 6✅ 334ms
src/game-logic/reducers/minePlot.test.js 6✅ 364ms
src/game-logic/reducers/offerCow.test.js 1✅ 256ms
src/game-logic/reducers/plantInPlot.test.js 5✅ 322ms
src/game-logic/reducers/prependPendingPeerMessage.test.js 2✅ 259ms
src/game-logic/reducers/processCellar.test.js 1✅ 309ms
src/game-logic/reducers/processCellarSpoilage.test.js 3✅ 412ms
src/game-logic/reducers/processCowAttrition.test.js 2✅ 343ms
src/game-logic/reducers/processCowBreeding.test.js 8✅ 329ms
src/game-logic/reducers/processCowFertilizerProduction.test.js 3✅ 371ms
src/game-logic/reducers/processFeedingCows.test.js 4✅ 357ms
src/game-logic/reducers/processLevelUp.test.js 3✅ 593ms
src/game-logic/reducers/processMilkingCows.test.js 3✅ 320ms
src/game-logic/reducers/processNerfs.test.js 1✅ 353ms
src/game-logic/reducers/processSprinklers.test.js 2✅ 299ms
src/game-logic/reducers/processWeather.test.js 2✅ 360ms
src/game-logic/reducers/purchaseCellar.test.js 6✅ 339ms
src/game-logic/reducers/purchaseCombine.test.js 3✅ 318ms
src/game-logic/reducers/purchaseComposter.test.js 5✅ 304ms
src/game-logic/reducers/purchaseCow.test.js 3✅ 392ms
src/game-logic/reducers/purchaseCowPen.test.js 6✅ 326ms
src/game-logic/reducers/purchaseField.test.js 5✅ 363ms
src/game-logic/reducers/purchaseForest.test.js 6✅ 365ms
src/game-logic/reducers/purchaseItem.test.js 5✅ 335ms
src/game-logic/reducers/purchaseSmelter.test.js 5✅ 312ms
src/game-logic/reducers/purchaseStorageExpansion.test.js 2✅ 295ms
src/game-logic/reducers/rotateNotificationLogs.test.js 3✅ 434ms
src/game-logic/reducers/selectCow.test.js 1✅ 194ms
src/game-logic/reducers/sellCow.test.js 3✅ 367ms
src/game-logic/reducers/sellItem.test.js 18✅ 2s
src/game-logic/reducers/sellKeg.test.js 9✅ 403ms
src/game-logic/reducers/setScarecrow.test.js 4✅ 304ms
src/game-logic/reducers/setSprinkler.test.js 4✅ 308ms
src/game-logic/reducers/showNotification.test.js 2✅ 254ms
src/game-logic/reducers/spawnWeeds.test.js 3✅ 332ms
src/game-logic/reducers/unlockTool.test.js 2✅ 302ms
src/game-logic/reducers/updateAchievements.test.js 4✅ 528ms
src/game-logic/reducers/updateFinancialRecords.test.js 3✅ 283ms
src/game-logic/reducers/updateInventoryRecordsForNextDay.test.js 1✅ 226ms
src/game-logic/reducers/updateLearnedRecipes.test.js 2✅ 214ms
src/game-logic/reducers/updatePeer.test.js 4✅ 672ms
src/game-logic/reducers/updatePlotShoveledState.test.js 3✅ 251ms
src/game-logic/reducers/updatePriceEvents.test.js 1✅ 239ms
src/game-logic/reducers/waterAllPlots.test.js 1✅ 334ms
src/game-logic/reducers/waterPlot.test.js 2✅ 313ms
src/game-logic/reducers/withdrawCow.test.js 1✅ 245ms
src/handlers/ui-events.test.js 17✅ 7s
src/shell/bootup.test.js 4✅ 4s
src/shell/game-saving.test.js 1✅ 2s
src/shell/navigation.test.js 4✅ 7s
src/shell/notifications.test.js 2✅ 4s
src/shell/pending-notifications.test.js 1✅ 2s
src/utils/findInField.test.js 2✅ 337ms
src/utils/getCropLifecycleDuration.test.js 1✅ 185ms
src/utils/getCropsAvailableToFerment.test.js 2✅ 316ms
src/utils/getKegSpoilageRate.test.js 5✅ 259ms
src/utils/getLevelEntitlements.test.js 1✅ 248ms
src/utils/getMaxYieldOfFermentationRecipe.test.js 4✅ 221ms
src/utils/getWineVarietiesAvailableToMake.test.js 2✅ 234ms
src/utils/index.test.js 89✅ 17s
src/utils/moneyString.test.js 1✅ 245ms
src/utils/totalIngredientsInRecipe.test.js 2✅ 205ms