-
Notifications
You must be signed in to change notification settings - Fork 395
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
test: Migrated test/unit/util
to use node:test
#2546
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2546 +/- ##
=======================================
Coverage 97.19% 97.19%
=======================================
Files 289 289
Lines 45416 45448 +32
=======================================
+ Hits 44140 44172 +32
Misses 1276 1276
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
await Promise.all( | ||
features.map(async ({ feature, method }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one, however, does have the hooks present. Are we sure they are getting applied correctly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is working.
node test/unit/util/application-logging.test.js | grep 'before test' | wc -l
outputs
8
6 for the fixtures and 2 for the standalone
t.ok(test.obfuscated.includes(obfuscated)) | ||
} | ||
function runTest(t, testCase, dialect) { | ||
t.diagnostic(dialect) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, this isn't going to print inline with the actual test in the output. Diagnostic messages get collected and reported after all tests are done 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they seem to post inline
ℹ postgres
ℹ cassandra
✔ uuid_with_braces (0.01925ms)
ℹ postgres
✔ uuid_no_dashes (0.01825ms)
ℹ postgres
✔ uuid_random_dashes (0.017791ms)
ℹ postgres
✔ booleans (0.019708ms)
ℹ mysql
ℹ postgres
ℹ cassandra
ℹ sqlite
✔ in_clause_digits (0.021291ms)
ℹ mysql
ℹ postgres
ℹ oracle
ℹ cassandra
ℹ mssql
✔ in_clause_strings (0.028792ms)
ℹ mysql
ℹ postgres
ℹ oracle
ℹ cassandra
ℹ mssql
✔ should handle line endings (0.045709ms)
486b454
to
d5c230f
Compare
Related Issues
Closes #2539