Skip to content

Refactor and fix unit tests for InstallRuleInstaller #1744

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

Open
wants to merge 9 commits into
base: ecosystem-integration
Choose a base branch
from

Conversation

anttimaki
Copy link
Collaborator

No description provided.

Additionally fix an issue where the test checked existence of a
`_state/${pkg.getName()}.yml` file, which doesn't exist as the real
name of the file is `_state/${pkg.getName()}-state.yml` The tests
never caught this as the .expect() wasn't chained with .toBeTruthy() .
Basically this just tests for BepInEx config so the code could've been
made even more reusable but the current implememtation retains the
option to vary the tested paths by game.
Generic in this context means the test cases don't depend on the actual
install rules of any game.
This dummy game is no longer available when the Thunderstore ecosystem
schema acts as the source of truth for available games.
SUBDIR_NO_FLATTEN tracking method has some generic tests in
Installer.Tests.spec.ts so dropping them shouldn't affect test
coverage.
@anttimaki anttimaki force-pushed the ei-installer-tests branch from ee09410 to d52fff4 Compare April 30, 2025 12:08
Copy link
Collaborator

@VilppeRiskidev VilppeRiskidev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, can't really find anything that's out of place. 👍

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