From 7193b1bc2ccd378632f32066250055e579b2f388 Mon Sep 17 00:00:00 2001 From: Christopher James <157437319+ChristopherJamesL@users.noreply.github.com> Date: Mon, 16 Dec 2024 07:30:41 -0500 Subject: [PATCH] [core] Fix running mocha related scripts on Windows locally (#44664) Co-authored-by: ZeeshanTamboli --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 08c8dc33d0d5f7..ef2c6792d7d41b 100644 --- a/package.json +++ b/package.json @@ -86,16 +86,16 @@ "generate-codeowners": "node scripts/generateCodeowners.mjs", "canary:release": "tsx ./scripts/canaryRelease.mts", "nx_test_tc": "node test/cli.js", - "nx_test_coverage_ci": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov mocha 'packages/**/*.test.?(c|m)[jt]s?(x)' 'packages-internal/**/*.test.?(c|m)[jt]s?(x)' 'docs/**/*.test.?(c|m)[jt]s?(x)'", - "nx_test_coverage_html": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=html mocha 'packages/**/*.test.?(c|m)[jt]s?(x)' 'packages-internal/**/*.test.?(c|m)[jt]s?(x)' 'docs/**/*.test.?(c|m)[jt]s?(x)'", - "nx_test_coverage": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=text mocha 'packages/**/*.test.?(c|m)[jt]s?(x)' 'packages-internal/**/*.test.?(c|m)[jt]s?(x)' 'docs/**/*.test.?(c|m)[jt]s?(x)'", + "nx_test_coverage_ci": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov mocha \"packages/**/*.test.?(c|m)[jt]s?(x)\" \"packages-internal/**/*.test.?(c|m)[jt]s?(x)\" \"docs/**/*.test.?(c|m)[jt]s?(x)\"", + "nx_test_coverage_html": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=html mocha \"packages/**/*.test.?(c|m)[jt]s?(x)\" \"packages-internal/**/*.test.?(c|m)[jt]s?(x)\" \"docs/**/*.test.?(c|m)[jt]s?(x)\"", + "nx_test_coverage": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=text mocha \"packages/**/*.test.?(c|m)[jt]s?(x)\" \"packages-internal/**/*.test.?(c|m)[jt]s?(x)\" \"docs/**/*.test.?(c|m)[jt]s?(x)\"", "nx_test_e2e_build": "webpack --config test/e2e/webpack.config.js", - "nx_test_e2e_run": "mocha --config test/e2e/.mocharc.js 'test/e2e/**/*.test.?(c|m)[jt]s?(x)'", + "nx_test_e2e_run": "mocha --config test/e2e/.mocharc.js \"test/e2e/**/*.test.?(c|m)[jt]s?(x)\"", "nx_test_karma_profile": "cross-env NODE_ENV=test karma start test/karma.conf.profile.js", "nx_test_karma": "cross-env NODE_ENV=test karma start test/karma.conf.js", "nx_test_regressions_run": "mocha --config test/regressions/.mocharc.js --delay 'test/regressions/**/*.test.js'", "nx_test_regressions_pigment_css_run": "mocha --config apps/pigment-css-vite-app/.mocharc.cjs --delay 'apps/pigment-css-vite-app/**/*.test.js'", - "nx_test_unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.?(c|m)[jt]s?(x)' 'packages-internal/**/*.test.?(c|m)[jt]s?(x)' 'docs/**/*.test.?(c|m)[jt]s?(x)'" + "nx_test_unit": "cross-env NODE_ENV=test mocha \"packages/**/*.test.?(c|m)[jt]s?(x)\" \"packages-internal/**/*.test.?(c|m)[jt]s?(x)\" \"docs/**/*.test.?(c|m)[jt]s?(x)\"" }, "dependencies": { "@googleapis/sheets": "^9.3.1",