|
86 | 86 | "schemas/" |
87 | 87 | ], |
88 | 88 | "scripts": { |
89 | | - "test": "node --no-deprecation node_modules/.bin/jest", |
90 | | - "test:integration": "node --no-deprecation node_modules/.bin/jest --testMatch '<rootDir>/test/*.test.js'", |
91 | | - "test:unit": "node --no-deprecation node_modules/.bin/jest --testMatch '<rootDir>/test/*.unittest.js'", |
| 89 | + "test": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest", |
| 90 | + "test:integration": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --testMatch '<rootDir>/test/*.test.js'", |
| 91 | + "test:unit": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --testMatch '<rootDir>/test/*.unittest.js'", |
92 | 92 | "travis:integration": "npm run cover:init && npm run cover:integration && npm run cover:report-min", |
93 | 93 | "travis:unit": "npm run cover:init && npm run cover:unit && npm run cover:report-min", |
94 | 94 | "travis:lint": "npm run lint-files", |
95 | 95 | "travis:benchmark": "npm run benchmark", |
96 | 96 | "appveyor:integration": "npm run cover:init && npm run cover:integration && npm run cover:report-min", |
97 | 97 | "appveyor:unit": "npm run cover:init && npm run cover:unit && npm run cover:report-min", |
98 | 98 | "appveyor:benchmark": "npm run benchmark", |
99 | | - "circleci:test": "node node_modules/mocha/bin/mocha --max-old-space-size=4096 --harmony --trace-deprecation test/*.test.js test/*.unittest.js", |
| 99 | + "circleci:test": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest", |
100 | 100 | "circleci:lint": "npm run lint-files", |
101 | 101 | "build:examples": "cd examples && node buildAll.js", |
102 | 102 | "pretest": "npm run lint-files", |
103 | 103 | "lint-files": "npm run lint && npm run beautify-lint && npm run schema-lint", |
104 | 104 | "lint": "eslint lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\"", |
105 | 105 | "fix": "npm run lint -- --fix", |
106 | 106 | "beautify-lint": "beautify-lint \"lib/**/*.js\" \"hot/**/*.js\" \"bin/**/*.js\" \"benchmark/*.js\" \"test/*.js\" \"test/**/webpack.config.js\" \"examples/**/webpack.config.js\"", |
107 | | - "schema-lint": "mocha test/*.lint.js --opts test/lint-mocha.opts", |
108 | | - "benchmark": "mocha --max-old-space-size=4096 --harmony --trace-deprecation test/*.benchmark.js -R spec", |
| 107 | + "schema-lint": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --testMatch '<rootDir>/test/*.lint.js'", |
| 108 | + "benchmark": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --testMatch '<roorDir>/test/*.benchmark.js'", |
109 | 109 | "cover": "npm run cover:init && npm run cover:all && npm run cover:report", |
110 | 110 | "cover:init": "rimraf coverage", |
111 | | - "cover:all": "node --max-old-space-size=4096 --harmony --trace-deprecation ./node_modules/istanbul/lib/cli.js cover --report none node_modules/mocha/bin/_mocha -- test/*.test.js test/*.unittest.js", |
112 | | - "cover:integration": "node --max-old-space-size=4096 --harmony --trace-deprecation ./node_modules/istanbul/lib/cli.js cover --report none node_modules/mocha/bin/_mocha -- test/*.test.js", |
113 | | - "cover:unit": "node --max-old-space-size=4096 --harmony --trace-deprecation ./node_modules/istanbul/lib/cli.js cover --report none node_modules/mocha/bin/_mocha -- test/*.unittest.js", |
114 | | - "cover:report": "istanbul report", |
115 | | - "cover:report-min": "istanbul report --report lcovonly", |
| 111 | + "cover:all": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --coverage", |
| 112 | + "cover:integration": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --testMatch '<rootDir>/test/*.test.js' --coverage", |
| 113 | + "cover:unit": "node --no-deprecation --max-old-space-size=4096 --harmony node_modules/.bin/jest --testMatch '<rootDir>/test/*.unittest.js' --coverage", |
| 114 | + "cover:report": "echo report", |
| 115 | + "cover:report-min": "echo report --report lcovonly", |
116 | 116 | "publish-patch": "npm run lint && npm run beautify-lint && mocha && npm version patch && git push && git push --tags && npm publish" |
117 | 117 | }, |
118 | 118 | "jest": { |
|
132 | 132 | ], |
133 | 133 | "transformIgnorePatterns": [ |
134 | 134 | "<rootDir>/" |
135 | | - ] |
| 135 | + ], |
| 136 | + "coverageDirectory": "<rootDir>/coverage", |
| 137 | + "coveragePathIgnorePatterns": ["\\.runtime\\.js$"] |
136 | 138 | } |
137 | 139 | } |
0 commit comments