test(aap): select mongodb version by Node.js runtime in plugin tests#9322
Conversation
…e and mquery plugin test
Overall package sizeSelf size: 6.74 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.1 | 122.62 kB | 438.86 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: e7b9ea3 | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-07-14 14:21:46 Comparing candidate commit e7b9ea3 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 2313 metrics, 45 unstable metrics.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9322 +/- ##
========================================
Coverage 96.60% 96.61%
========================================
Files 919 920 +1
Lines 121832 122236 +404
Branches 21079 21453 +374
========================================
+ Hits 117701 118095 +394
- Misses 4131 4141 +10 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
BridgeAR
left a comment
There was a problem hiding this comment.
I will think about how the unversioned part will still stay latest even with your changes :)
…ating Co-authored-by: Ruben Bridgewater <[email protected]>
What does this PR do?
Adds a Node.js runtime gate (
node: '>=20') to themongodb >=7version entries in test/plugins/externals.jsfor theexpress-mongo-sanitizeandmqueryplugin tests, using the version-selection mechanism from #9306. Removes the now-redundantNODE_MAJOR < 20skip guards from the two NoSQL injection analyzer specs.Motivation
mongodb@>=7requiresNode.js >=20; this was previously enforced with a manualdescribe.skipat test time.Additional Notes
mongodbhere is a test-only dependency declared inexternals.js, not the plugin's ownaddHook, so no production code changes were needed.