File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 836836run_test " bun.lock: BLOCK one bad in many" " $SENTINEL_CMD scan $TEST_DIR /mixed-bun.lock $BL --logMode=quiet" 1
837837
838838# bun.lock with JSONC comments
839- cat > " $TEST_DIR /jsonc-bun.lock" << 'EOF '
839+ mkdir -p " $TEST_DIR /jsonc-bun"
840+ echo ' {"name":"test"}' > " $TEST_DIR /jsonc-bun/package.json"
841+ cat > " $TEST_DIR /jsonc-bun/bun.lock" << 'EOF '
840842{
841843 // This is a comment
842844 "lockfileVersion": 0,
@@ -845,7 +847,7 @@ cat > "$TEST_DIR/jsonc-bun.lock" << 'EOF'
845847 }
846848}
847849EOF
848- run_test " bun.lock: JSONC with comments" " $SENTINEL_CMD scan $TEST_DIR /jsonc-bun.lock $BL --logMode=quiet" 0
850+ run_test " bun.lock: JSONC with comments" " $SENTINEL_CMD scan $TEST_DIR /jsonc-bun $BL --logMode=quiet" 0
849851
850852# ╔══════════════════════════════════════════════════════════════════════════════════╗
851853# ║ SECTION 9: SCAN DIRECTORIES ║
You can’t perform that action at this time.
0 commit comments