feat(multiplayer): Optimize API usage (#494) #1579
GitHub Actions / Jest Tests
succeeded
Apr 30, 2024 in 0s
624 passed, 0 failed and 0 skipped
✅ reports/jest-junit.xml
624 tests were completed in 57s with 624 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
src/common/services/randomNumber.test.js | 3✅ | 222ms | ||
src/common/utils.test.js | 2✅ | 250ms | ||
src/components/AccountingView/AccountingView.test.js | 6✅ | 882ms | ||
src/components/Achievement/Achievement.test.js | 3✅ | 375ms | ||
src/components/AchievementsView/AchievementsView.test.js | 1✅ | 342ms | ||
src/components/AnimatedNumber/AnimatedNumber.test.js | 1✅ | 251ms | ||
src/components/AppBar/AppBar.test.js | 1✅ | 282ms | ||
src/components/BailOutErrorBoundary/BailOutErrorBoundary.test.js | 1✅ | 350ms | ||
src/components/ContextPane/ContextPane.test.js | 1✅ | 514ms | ||
src/components/CowCard/Bloodline/Bloodline.test.js | 1✅ | 356ms | ||
src/components/CowCard/CowCard.test.js | 11✅ | 22s | ||
src/components/CowCard/Subheader/Subheader.test.js | 9✅ | 768ms | ||
src/components/CowPen/CowPen.test.js | 9✅ | 599ms | ||
src/components/CowPenContextMenu/CowPenContextMenu.test.js | 1✅ | 507ms | ||
src/components/DebugMenu/DebugMenu.test.js | 1✅ | 301ms | ||
src/components/Farmhand/Farmhand.test.js | 4✅ | 793ms | ||
src/components/Farmhand/helpers/getInventoryQuantities.test.js | 1✅ | 274ms | ||
src/components/FermentationRecipeList/FermentationRecipeList.test.js | 2✅ | 399ms | ||
src/components/Field/Field.test.js | 21✅ | 5s | ||
src/components/Home/Home.test.js | 3✅ | 814ms | ||
src/components/IngredientsList/IngredientsList.test.js | 3✅ | 333ms | ||
src/components/Inventory/Inventory.test.js | 3✅ | 569ms | ||
src/components/Item/Item.test.js | 9✅ | 2s | ||
src/components/KeybindingsView/KeybindingsView.test.js | 1✅ | 263ms | ||
src/components/LogView/LogView.test.js | 2✅ | 367ms | ||
src/components/Navigation/Navigation.test.js | 3✅ | 552ms | ||
src/components/NotificationSystem/NotificationSystem.test.js | 1✅ | 343ms | ||
src/components/OnlinePeersView/OnlinePeer/OnlinePeer.test.js | 1✅ | 541ms | ||
src/components/OnlinePeersView/OnlinePeersView.test.js | 1✅ | 461ms | ||
src/components/Plot/Plot.rtl.test.js | 9✅ | 2s | ||
src/components/Plot/Plot.test.js | 23✅ | 20s | ||
src/components/PriceEventView/PriceEventView.test.js | 1✅ | 453ms | ||
src/components/ProgressBar/ProgressBar.test.js | 1✅ | 236ms | ||
src/components/QuantityInput/QuantityInput.test.js | 1✅ | 398ms | ||
src/components/QuickSelect/QuickSelect.test.js | 1✅ | 468ms | ||
src/components/Recipe/Recipe.test.js | 1✅ | 430ms | ||
src/components/SettingsView/RandomSeedInput.test.js | 2✅ | 500ms | ||
src/components/SettingsView/SettingsView.test.js | 1✅ | 418ms | ||
src/components/Shop/Shop.test.js | 3✅ | 547ms | ||
src/components/Stage/Stage.test.js | 3✅ | 570ms | ||
src/components/StatsView/StatsView.test.js | 1✅ | 376ms | ||
src/components/TierPurchase/TierPurchase.test.js | 11✅ | 2s | ||
src/components/Toolbelt/Toolbelt.test.js | 7✅ | 957ms | ||
src/components/UpgradePurchase/UpgradePurchase.test.js | 6✅ | 574ms | ||
src/components/Workshop/getUpgradesAvailable.test.js | 2✅ | 254ms | ||
src/components/Workshop/Workshop.test.js | 11✅ | 2s | ||
src/data/achievements.test.js | 18✅ | 384ms | ||
src/factories/CoalFactory.test.js | 2✅ | 324ms | ||
src/factories/OreFactory.test.js | 1✅ | 306ms | ||
src/factories/ResourceFactory.test.js | 4✅ | 416ms | ||
src/factories/StoneFactory.test.js | 1✅ | 286ms | ||
src/game-logic/cows/cow-selection.test.js | 4✅ | 11s | ||
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✅ | 259ms | ||
src/game-logic/reducers/addItemToInventory.test.js | 5✅ | 357ms | ||
src/game-logic/reducers/adjustLoan.test.js | 3✅ | 339ms | ||
src/game-logic/reducers/applyCrows.test.js | 6✅ | 300ms | ||
src/game-logic/reducers/applyLoanInterest.test.js | 1✅ | 581ms | ||
src/game-logic/reducers/applyPrecipitation.test.js | 5✅ | 348ms | ||
src/game-logic/reducers/changeCowAutomaticHugState.test.js | 4✅ | 551ms | ||
src/game-logic/reducers/changeCowBreedingPenResident.test.js | 8✅ | 296ms | ||
src/game-logic/reducers/changeCowName.test.js | 2✅ | 401ms | ||
src/game-logic/reducers/clearPlot.test.js | 7✅ | 341ms | ||
src/game-logic/reducers/computeCowInventoryForNextDay.test.js | 2✅ | 228ms | ||
src/game-logic/reducers/computeStateForNextDay.test.js | 11✅ | 368ms | ||
src/game-logic/reducers/createPriceEvent.test.js | 2✅ | 265ms | ||
src/game-logic/reducers/decrementItemFromInventory.test.js | 3✅ | 227ms | ||
src/game-logic/reducers/fertilizePlot.test.js | 9✅ | 324ms | ||
src/game-logic/reducers/forRange.test.js | 1✅ | 299ms | ||
src/game-logic/reducers/generatePriceEvents.test.js | 3✅ | 456ms | ||
src/game-logic/reducers/harvestPlot.test.js | 11✅ | 581ms | ||
src/game-logic/reducers/hugCow.test.js | 3✅ | 263ms | ||
src/game-logic/reducers/incrementPlotContentAge.test.js | 4✅ | 297ms | ||
src/game-logic/reducers/makeFermentationRecipe.test.js | 4✅ | 270ms | ||
src/game-logic/reducers/makeRecipe.test.js | 6✅ | 340ms | ||
src/game-logic/reducers/minePlot.test.js | 6✅ | 326ms | ||
src/game-logic/reducers/offerCow.test.js | 1✅ | 248ms | ||
src/game-logic/reducers/plantInPlot.test.js | 5✅ | 483ms | ||
src/game-logic/reducers/prependPendingPeerMessage.test.js | 2✅ | 244ms | ||
src/game-logic/reducers/processCellar.test.js | 1✅ | 280ms | ||
src/game-logic/reducers/processCellarSpoilage.test.js | 3✅ | 328ms | ||
src/game-logic/reducers/processCowAttrition.test.js | 2✅ | 350ms | ||
src/game-logic/reducers/processCowBreeding.test.js | 8✅ | 384ms | ||
src/game-logic/reducers/processCowFertilizerProduction.test.js | 3✅ | 351ms | ||
src/game-logic/reducers/processFeedingCows.test.js | 4✅ | 363ms | ||
src/game-logic/reducers/processLevelUp.test.js | 3✅ | 587ms | ||
src/game-logic/reducers/processMilkingCows.test.js | 3✅ | 289ms | ||
src/game-logic/reducers/processNerfs.test.js | 1✅ | 365ms | ||
src/game-logic/reducers/processSprinklers.test.js | 2✅ | 286ms | ||
src/game-logic/reducers/processWeather.test.js | 2✅ | 341ms | ||
src/game-logic/reducers/purchaseCellar.test.js | 6✅ | 311ms | ||
src/game-logic/reducers/purchaseCombine.test.js | 3✅ | 333ms | ||
src/game-logic/reducers/purchaseComposter.test.js | 5✅ | 340ms | ||
src/game-logic/reducers/purchaseCow.test.js | 3✅ | 335ms | ||
src/game-logic/reducers/purchaseCowPen.test.js | 6✅ | 391ms | ||
src/game-logic/reducers/purchaseField.test.js | 5✅ | 349ms | ||
src/game-logic/reducers/purchaseForest.test.js | 6✅ | 349ms | ||
src/game-logic/reducers/purchaseItem.test.js | 5✅ | 348ms | ||
src/game-logic/reducers/purchaseSmelter.test.js | 5✅ | 287ms | ||
src/game-logic/reducers/purchaseStorageExpansion.test.js | 2✅ | 281ms | ||
src/game-logic/reducers/rotateNotificationLogs.test.js | 3✅ | 205ms | ||
src/game-logic/reducers/selectCow.test.js | 1✅ | 188ms | ||
src/game-logic/reducers/sellCow.test.js | 3✅ | 355ms | ||
src/game-logic/reducers/sellItem.test.js | 18✅ | 2s | ||
src/game-logic/reducers/sellKeg.test.js | 9✅ | 338ms | ||
src/game-logic/reducers/setScarecrow.test.js | 4✅ | 332ms | ||
src/game-logic/reducers/setSprinkler.test.js | 4✅ | 261ms | ||
src/game-logic/reducers/showNotification.test.js | 2✅ | 284ms | ||
src/game-logic/reducers/spawnWeeds.test.js | 3✅ | 307ms | ||
src/game-logic/reducers/unlockTool.test.js | 2✅ | 242ms | ||
src/game-logic/reducers/updateAchievements.test.js | 4✅ | 309ms | ||
src/game-logic/reducers/updateFinancialRecords.test.js | 3✅ | 275ms | ||
src/game-logic/reducers/updateInventoryRecordsForNextDay.test.js | 1✅ | 191ms | ||
src/game-logic/reducers/updateLearnedRecipes.test.js | 2✅ | 215ms | ||
src/game-logic/reducers/updatePeer.test.js | 4✅ | 651ms | ||
src/game-logic/reducers/updatePlotShoveledState.test.js | 3✅ | 262ms | ||
src/game-logic/reducers/updatePriceEvents.test.js | 1✅ | 237ms | ||
src/game-logic/reducers/waterAllPlots.test.js | 1✅ | 279ms | ||
src/game-logic/reducers/waterPlot.test.js | 2✅ | 567ms | ||
src/game-logic/reducers/withdrawCow.test.js | 1✅ | 205ms | ||
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✅ | 330ms | ||
src/utils/getCropLifecycleDuration.test.js | 1✅ | 231ms | ||
src/utils/getCropsAvailableToFerment.test.js | 2✅ | 291ms | ||
src/utils/getKegSpoilageRate.test.js | 5✅ | 363ms | ||
src/utils/getLevelEntitlements.test.js | 1✅ | 216ms | ||
src/utils/getMaxYieldOfFermentationRecipe.test.js | 4✅ | 246ms | ||
src/utils/index.test.js | 89✅ | 17s | ||
src/utils/moneyString.test.js | 1✅ | 217ms | ||
src/utils/totalIngredientsInRecipe.test.js | 2✅ | 247ms |
Loading