Skip to content

chore(#517): refresh grunt-mocha-cli patch #518

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: npm install -g [email protected]
- run: npm install @eslint/js
- run: npm install
- run: eslint
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
diff --git a/node_modules/grunt-mocha-cli/lib/index.js b/node_modules/grunt-mocha-cli/lib/index.js
index bc0dc26..02afdce 100644
index 59f7a07..4cc7182 100644
--- a/node_modules/grunt-mocha-cli/lib/index.js
+++ b/node_modules/grunt-mocha-cli/lib/index.js
@@ -2,6 +2,7 @@
const fs = require('fs')
const path = require('path')
const grunt = require('grunt')
+const os = require('os')

const BOOL_OPTIONS = [
'allow-uncaught',
@@ -57,6 +58,10 @@ module.exports = function(options) {
@@ -55,6 +56,10 @@ module.exports = function(options) {
spawnOptions.cmd = path.dirname(spawnOptions.cmd)
spawnOptions.cmd += '/../.bin/mocha'

+ if (os.platform() === 'win32') {
+ spawnOptions.opts.shell = true
+ }
Expand Down