Skip to content

Fix web core testing (local and remote)#956

Merged
ava-cassiopeia merged 6 commits intomainfrom
avac-web-core-testing
Mar 24, 2026
Merged

Fix web core testing (local and remote)#956
ava-cassiopeia merged 6 commits intomainfrom
avac-web-core-testing

Conversation

@ava-cassiopeia
Copy link
Copy Markdown
Collaborator

@ava-cassiopeia ava-cassiopeia commented Mar 24, 2026

This makes npm run test actually work for web core, and also runs that in the relevant GitHub check.

I also renamed the GitHub actions to be more consistent and drop the "build" or "build and test" from the name, since it is redundant:

the github actions section showing that actions have both their name and their job name displayed

@ava-cassiopeia ava-cassiopeia self-assigned this Mar 24, 2026
@github-project-automation github-project-automation bot moved this to Todo in A2UI Mar 24, 2026
@ava-cassiopeia ava-cassiopeia marked this pull request as ready for review March 24, 2026 14:00
@gspencergoog
Copy link
Copy Markdown
Collaborator

/gemini review

@google google deleted a comment from gemini-code-assist bot Mar 24, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the test script in renderers/web_core/package.json. The test command has been changed from node --test "dist/**/*.test.js" to node --test dist, which simplifies how tests are discovered and executed. All review comments were filtered out as they either explained/validated the change or contained praise, therefore there is no feedback to provide.

},
"test": {
"command": "node --test \"dist/**/*.test.js\"",
"command": "node --test dist",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The change to node --test dist addresses the issue of npm run test not working, which is a good fix. However, the test:coverage script (line 44) still uses the explicit glob pattern "dist/**/*.test.js".

For consistency and clarity in defining which files are considered tests, it would be beneficial to align these two commands. Consider either updating test:coverage to also use node --test dist (if c8 supports it and it correctly identifies all tests) or, if the glob pattern is preferred for its explicitness, investigate why node --test "dist/**/*.test.js" was not working previously and potentially re-introduce a working explicit pattern for both.

Copy link
Copy Markdown
Collaborator

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@ava-cassiopeia ava-cassiopeia merged commit 6c32425 into main Mar 24, 2026
17 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in A2UI Mar 24, 2026
@ava-cassiopeia ava-cassiopeia deleted the avac-web-core-testing branch March 24, 2026 17:29
wrenj pushed a commit to wrenj/A2UI that referenced this pull request Mar 25, 2026
* Fix web core testing

* revert changes to move elsewhere

* Rename workflow to be more consistent

* Create new workflow for web build and test

* Rename workflows to be more consistent and less redundant

* Fix copyright year
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants