copilot-swe-agent[bot] 6aac7bf9da Fix test commands to use find + xargs for file discovery
- Node.js --test flag doesn't support glob patterns directly
- Changed test commands to use find + xargs pattern
- This ensures all test files are discovered and passed to node --test
- Works reliably across different shell environments

Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
2025-10-12 04:17:46 +00:00

15 lines
362 B
JSON

{
"name": "@examples/compat-mode",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "napi-raw build --no-js --features latest",
"test": "find __tests__ -name '*.spec.ts' | xargs node --import @oxc-node/core/register --test"
},
"devDependencies": {
"@napi-rs/cli": "workspace:*",
"sinon": "^21.0.0"
}
}