Browse Source

Fixed mocha exit on node 10

sanex3339 5 năm trước cách đây
mục cha
commit
2527fe3036

+ 2 - 2
scripts/test-coveralls

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

+ 1 - 1
scripts/test-full

@@ -3,5 +3,5 @@
 yarn run test:removeTmpDir &&
 yarn run test:compile &&
 node test-tmp/test/dev/dev.js &&
-$(yarn bin)/nyc --reporter text-summary $(yarn bin)/mocha -- test-tmp/test/index.spec.js &&
+$(yarn bin)/nyc --reporter text-summary $(yarn bin)/mocha -- test-tmp/test/index.spec.js --exit &&
 yarn run test:removeTmpDir

+ 3 - 1
test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts

@@ -667,7 +667,9 @@ describe('JavaScriptObfuscator', () => {
             });
         });
 
-        describe('Identifier names collision between base code and appended string array nodes', () => {
+        describe('Identifier names collision between base code and appended string array nodes', function () {
+            this.timeout(10000);
+
             const samplesCount: number = 30;
 
             let areCollisionsExists: boolean = false;