Skip to content

Fix issue where tests fail to find chai library.#1983

Closed
tsukasa-au wants to merge 1 commit into
novnc:masterfrom
tsukasa-au:fix-unittests
Closed

Fix issue where tests fail to find chai library.#1983
tsukasa-au wants to merge 1 commit into
novnc:masterfrom
tsukasa-au:fix-unittests

Conversation

@tsukasa-au
Copy link
Copy Markdown
Contributor

A breaking change to how the chai library is bundled was made between 5.x.x and 6.x.x (it was originally made in 5.3.1, but that change was reverted in 5.3.2, then made again after bumping the major version number). This results in all locally executed karma tests failing due to a missing file.

This is a temporary work around until someone correctly fixes our usage or this libary.

A breaking change to how the chai library is bundled was made between
5.x.x and 6.x.x (it was originally made in 5.3.1, but that change was
reverted in 5.3.2, then made again after bumping the major version
number). This results in all locally executed karma tests
failing due to a missing file.

This is a temporary work around until someone correctly fixes our usage
or this libary.
@tsukasa-au tsukasa-au mentioned this pull request Aug 26, 2025
@CendioOssman
Copy link
Copy Markdown
Member

We'd prefer to fix it properly. Do you have a reference to what has changed?

@tsukasa-au
Copy link
Copy Markdown
Contributor Author

I think the original change was done in chaijs/chai#1694 (remove bundled chai), it was rolled back in chaijs/chai#1699, then rolled forward (with a version bump) in chaijs/chai#1700.

My knowledge of modern javascript is a little rusty... But chaijs/chai#1698 seems to suggest we should be using require and a bundler.

@CendioZeijlon
Copy link
Copy Markdown
Contributor

This was fixed in commit 8ebd9dd

@samhed samhed added this to the v1.7.0 milestone Sep 17, 2025
@tsukasa-au tsukasa-au deleted the fix-unittests branch November 17, 2025 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants