Skip to content

Remove console.log statements from test files - #2319

Merged
mathiasrw merged 2 commits into
developfrom
copilot/clean-test-output
Dec 4, 2025
Merged

mathiasrw merged 2 commits into
developfrom
copilot/clean-test-output

Conversation

Copilot AI commented Dec 4, 2025 •

Copy link
Copy Markdown
Contributor

Description

Test output contained unwanted console.log messages that cluttered the Mocha dot reporter output with foreign key error messages and query result dumps.

Changes

  • test/test1009.js: Removed 3 console.log statements printing error messages in foreign key violation tests
  • test/test167B.js: Removed 7 console.log statements printing query results in DISTINCT comparison tests

All assertions remain intact. Tests continue to validate behavior without debug output.

Checklist

  • Tests pass
  • No functionality changes
Original prompt

This section details on the original issue you should resolve

<issue_title>Clean test output</issue_title>
<issue_description>Pleaes investigate the yarn test command and understand why it is outputting anything. We dont want that.

also, look into if we have a brooken test with Error message: Foreign key "20" not found in table "tableA" that is not following the mocha asserts framework.


  ................................................................................................................................................................
  ,,,..Error message: Foreign key "20" not found in table "tableA"
.Error message: Foreign key "99" not found in table "tableC"
.Error message: Foreign key "99, 99" not found in table "tableE"
..................,,,,,..............................,,,.................................................................................................
  ..................................................................................................................res1 (SELECT *): [{"a":1},{"a":2},{"a":1}]
res2 (SELECT DISTINCT *): [{"a":1},{"a":2}]
res3 (SELECT COLUMN DISTINCT _): [{"a":1},{"a":2}]
res4 (SEARCH DISTINCT(/)): [{"a":1},{"a":2}]
.res3 (SELECT COLUMN DISTINCT _) with mixed data: [{"a":1},{"b":2}]
res4 (SEARCH DISTINCT(/)) with mixed data: [{"a":1},{"b":2}]
.res2 (SELECT DISTINCT *): [{"a":1},{"b":2}]
res4 (SEARCH DISTINCT(/)): [{"a":1},{"b":2}]
.SELECT COLUMN DISTINCT _ from array: [1,2,3]
...........................................
  ............................,,.........................................................................,................,.......................................
  ...........................,,,,,,,,,,,,,,,,,,,,.................................................................................................................
  ................................................,,,,,,,............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.......................................
  ...,,,...................,,,,........................,,,,..........,,,,,,,,,,,,,,,...,,,...,,,,,,,,,,,,,,,,,,.........,,,,,,,,..................................
  ,,,,,,,,,,,,........,,,..............................,,,,,,,,,,.................................,,,,....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....,
  ,,,,,................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....,,,,,,,,.......,,,,,,..........................................,,,,,,,,,
  ,,,,,,,,,,.........,,,,.,.....................................................................................................,........,,.,.,..,,,,,,,,,,.......
  ......................................................................,.................................,,,,,,,,,,,,,,,,,,,,,,,,,...............................
  ................................................................................................................,...............................................
  .........,.......,,..,,..,,..,,.........,................,.......,..,......,,........................,..,........,,,.............,,,,,,,,,,,,,,,,...............
  ,.,.............................................................................................................................................................
  ............................................................

  1898 passing (7s)
  402 pending

```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix test output for yarn test command Remove console.log statements from test files Dec 4, 2025
Copilot AI requested a review from mathiasrw December 4, 2025 04:26
@mathiasrw
mathiasrw marked this pull request as ready for review December 4, 2025 07:00
@mathiasrw
mathiasrw merged commit da10c4b into develop Dec 4, 2025
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.

Clean test output

2 participants