10000 Fixed mocha exit on node 10 · sec-js/javascript-obfuscator@2527fe3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2527fe3

Browse files
author
sanex3339
committed
Fixed mocha exit on node 10
1 parent 84b1ed7 commit 2527fe3

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

scripts/test-coveralls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
yarn run test:removeTmpDir &&
44
yarn run test:compile &&
5-
$(yarn bin)/nyc --reporter lcovonly $(yarn bin)/mocha -- test-tmp/test/index.spec.js &&
6-
cat ./coverage/lcov.info | $(yarn bin)/coveralls &&
5+
$(yarn bin)/nyc $(yarn bin)/mocha -- test-tmp/test/index.spec.js --exit &&
6+
$(yarn bin)/nyc report --reporter=text-lcov | $(yarn bin)/coveralls &&
77
yarn run test:removeTmpDir

scripts/test-full

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
yarn run test:removeTmpDir &&
44
yarn run test:compile &&
55
node test-tmp/test/dev/dev.js &&
6-
$(yarn bin)/nyc --reporter text-summary $(yarn bin)/mocha -- test-tmp/test/index.spec.js &&
6+
$(yarn bin)/nyc --reporter text-summary $(yarn bin)/mocha -- test-tmp/test/index.spec.js --exit &&
77
yarn run test:removeTmpDir

test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,9 @@ describe('JavaScriptObfuscator', () => {
667667
});
668668
});
669669

670-
describe('Identifier names collision between base code and appended string array nodes', () => {
670+
describe('Identifier names collision between base code and appended string array nodes', function () {
671+
this.timeout(10000);
672+
671673
const samplesCount: number = 30;
672674

673675
let areCollisionsExists: boolean = false;

0 commit comments

Comments
 (0)
0