Skip to content

spike card testing setup#4152

Open
tintinthong wants to merge 1 commit intomainfrom
spike-card-testing
Open

spike card testing setup#4152
tintinthong wants to merge 1 commit intomainfrom
spike-card-testing

Conversation

@tintinthong
Copy link
Contributor

No description provided.

@github-actions
Copy link

Preview deployments

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 714a487104

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +127 to +131
for (let result of results.tests) {
let entry = this.tests.find((t) => t.name === result.name);
if (!entry) continue;
entry.status = result.status === 'pass' ? 'pass' : 'fail';
entry.errorMessage = result.error?.message;

Choose a reason for hiding this comment

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

P1 Badge Mark unresolved test entries failed when run returns error

When / _run-tests returns an error payload with an empty tests array (for example, module import failure or prerender timeout), this loop never updates any of the entries that were set to running, so the UI stays in a perpetual running state with no actionable failure shown. Because the backend already returns status: "error" in these cases, the panel should explicitly transition any still-running toRun entries to fail (with a generic message) after processing results.tests.

Useful? React with 👍 / 👎.

Comment on lines +57 to +61
(globalThis as any).QUnit = {
test(name: string) {
names.push(name);
},
module(_name: string, optionsOrFn?: any, maybeFn?: any) {

Choose a reason for hiding this comment

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

P2 Badge Preserve default QUnit export while stubbing test discovery

This stub only defines test and module, but the qunit shim falls back to the real module for any missing key, so files that use import QUnit from 'qunit' (default export) will execute QUnit.test on the real runner instead of this collector and their tests will not be discovered in the panel. Include a default property that points at the stubbed API (or preserve/patch the previous global) so both named and default import styles are captured.

Useful? React with 👍 / 👎.

@github-actions
Copy link

Host Test Results

    1 files  ±0      1 suites  ±0   2h 11m 11s ⏱️ - 2m 3s
1 977 tests ±0  1 962 ✅ ±0  15 💤 ±0  0 ❌ ±0 
1 992 runs  ±0  1 977 ✅ ±0  15 💤 ±0  0 ❌ ±0 

Results for commit 714a487. ± Comparison against base commit 95d118e.

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.

1 participant