Skip to content

Commit

Permalink
chore: 单测调试支持跨平台 (#2600)
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Mar 15, 2024
1 parent b2df331 commit 76dfcda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/s2-core/scripts/test-live.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function main() {
const jestSpinner = ora('测试运行中...').start();

try {
execSync(`DEBUG_MODE=1 npx jest ${selectedPath.path}`);
execSync(`cross-env DEBUG_MODE=1 npx jest ${selectedPath.path}`);
jestSpinner.succeed('测试运行完成.');
} catch (error) {
jestSpinner.fail();
Expand Down
2 changes: 1 addition & 1 deletion packages/s2-react/scripts/test-live.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function main() {
const jestSpinner = ora('测试运行中...').start();

try {
execSync(`DEBUG_MODE=1 npx jest ${selectedPath.path}`);
execSync(`cross-env DEBUG_MODE=1 npx jest ${selectedPath.path}`);
jestSpinner.succeed('测试运行完成.');
} catch (error) {
jestSpinner.fail();
Expand Down

0 comments on commit 76dfcda

Please sign in to comment.