-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test: add basic ps API test
#1256
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
Conversation
2647947 to
1c8c9dc
Compare
115de0b to
538424b
Compare
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.
Pull Request Overview
This PR adds basic smoke tests for the ps lookup and abort-controller behavior, bumps several dev dependency versions, refines grid‐parsing logic in the vendor bundle, and updates size‐limit thresholds.
- Add
ps.lookupand abort controller tests in both Win32 and Node smoke suites - Bump dev dependencies (
@types/node,esbuild,jsr,lefthook, etc.) - Enhance
parseLinesandparseWinGridlogic inbuild/vendor-core.cjs - Update
.size-limit.jsonthresholds to reflect bundle changes
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test/smoke/win32.test.js | Add ps API and abort-controller tests; import cleanup |
| test/smoke/node.test.mjs | Add inline ps API and abort-controller blocks |
| package.json | Bump various dev dependency versions |
| build/vendor-core.cjs | Introduce EMPTY constant; filter out blank lines; overhaul WinGrid parsing |
| .size-limit.json | Increase limits to match updated bundle sizes |
Comments suppressed due to low confidence (1)
build/vendor-core.cjs:817
- [nitpick] Filtering out empty lines with
.filter(Boolean)changes behavior from the previous implementation; adding a comment explaining why blank lines are dropped would help future maintainers.
var parseLines = (input, sep) => input.split(EOL).filter(Boolean).map((l) => parseLine(l, sep));
test/smoke/win32.test.js
Outdated
|
|
||
| import assert from 'node:assert' | ||
| import { test, describe } from 'node:test' | ||
| import cp from 'child_process' |
Copilot
AI
Jul 10, 2025
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.
The cp import from 'child_process' is not used in this test file and can be removed to reduce noise.
| import cp from 'child_process' |
relates #1263