Browse Source

test: run linting during npm test (#2981)

Run linting checks alongside tests to catch style and formatting issues before pushing code or creating PRs, saving developers time by identifying problems earlier.

- Added lint:* to npm test command execution
- Maintains parallel execution on non-Windows systems

Signed-off-by: Eric Wheeler <[email protected]>
Co-authored-by: Eric Wheeler <[email protected]>
KJ7LNW 8 months ago
parent
commit
0549a02876
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/run-tests.js

+ 2 - 2
scripts/run-tests.js

@@ -2,7 +2,7 @@
 const { execSync } = require("child_process")
 const { execSync } = require("child_process")
 
 
 if (process.platform === "win32") {
 if (process.platform === "win32") {
-	execSync("npm-run-all test:*", { stdio: "inherit" })
+	execSync("npm-run-all test:* lint:*", { stdio: "inherit" })
 } else {
 } else {
-	execSync("npm-run-all -p test:*", { stdio: "inherit" })
+	execSync("npm-run-all -p test:* lint:*", { stdio: "inherit" })
 }
 }