parent
c06f9a1ce3
commit
84c2458ea7
@ -34,23 +34,10 @@ Before Commit
|
|||||||
|
|
||||||
Please make sure you pass all following checks before commit
|
Please make sure you pass all following checks before commit
|
||||||
|
|
||||||
- gulp lint (tslint)
|
- yarn gulp lint (tslint)
|
||||||
- gulp format:enforce (clang-format)
|
- yarn gulp format (clang-format)
|
||||||
- gulp promisetest (promise a+ test)
|
- yarn promisetest (promise a+ test)
|
||||||
- yarn test (karma browser test)
|
- yarn bazel test //packages/zone.js/... (all tests)
|
||||||
- gulp test-node (node test)
|
|
||||||
|
|
||||||
You can run
|
|
||||||
|
|
||||||
`yarn ci`
|
|
||||||
|
|
||||||
to do all those checks for you.
|
|
||||||
You can also add the script into your git pre-commit hook
|
|
||||||
|
|
||||||
```
|
|
||||||
echo -e 'exec npm run ci' > .git/hooks/pre-commit
|
|
||||||
chmod u+x .git/hooks/pre-commit
|
|
||||||
```
|
|
||||||
|
|
||||||
Webdriver Test
|
Webdriver Test
|
||||||
--------------
|
--------------
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
|
|
||||||
module.exports = function(config) {
|
|
||||||
require('./karma-build.conf.js')(config);
|
|
||||||
|
|
||||||
config.plugins.push(require('karma-jasmine'));
|
|
||||||
config.plugins.push(require('karma-phantomjs-launcher'));
|
|
||||||
config.frameworks.push('jasmine');
|
|
||||||
config.browsers.splice(0, 1, ['PhantomJS']);
|
|
||||||
};
|
|
@ -24,10 +24,10 @@
|
|||||||
"typescript": "~3.4.2"
|
"typescript": "~3.4.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"promisetest": "tsc -p . && node ./promise-test.js",
|
|
||||||
"promisefinallytest": "tsc -p . && mocha promise.finally.spec.js",
|
|
||||||
"electrontest": "cd test/extra && node electron.js",
|
"electrontest": "cd test/extra && node electron.js",
|
||||||
"jesttest": "jest --config ./test/jest/jest.config.js ./test/jest/jest.spec.js"
|
"jesttest": "jest --config ./test/jest/jest.config.js ./test/jest/jest.spec.js",
|
||||||
|
"promisetest": "tsc -p . && node ./test/promise/promise-test.js",
|
||||||
|
"promisefinallytest": "tsc -p . && mocha ./test/promise/promise.finally.spec.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require('./build/lib/node/rollup-main');
|
require('../../build/lib/node/rollup-main');
|
||||||
Zone[Zone.__symbol__('ignoreConsoleErrorUncaughtError')] = true;
|
Zone[Zone.__symbol__('ignoreConsoleErrorUncaughtError')] = true;
|
||||||
module.exports.deferred = function() {
|
module.exports.deferred = function() {
|
||||||
const p = {};
|
const p = {};
|
Loading…
x
Reference in New Issue
Block a user