chore(upgrade): infrastructure to allow running upgrade module specs
This commit is contained in:
parent
ec68074e69
commit
db6d289d82
|
@ -13,12 +13,14 @@ module.exports = function(config) {
|
|||
{pattern: 'dist/js/dev/es5/**', included: false, watched: false},
|
||||
|
||||
'node_modules/es6-shim/es6-shim.js',
|
||||
// include Angular v1 for upgrade module testing
|
||||
'node_modules/angular/angular.min.js',
|
||||
|
||||
// zone-microtask must be included first as it contains a Promise monkey patch
|
||||
'node_modules/zone.js/dist/zone-microtask.js',
|
||||
'node_modules/zone.js/dist/long-stack-trace-zone.js',
|
||||
'node_modules/zone.js/dist/jasmine-patch.js',
|
||||
|
||||
|
||||
// Including systemjs because it defines `__eval`, which produces correct stack traces.
|
||||
'modules/angular2/src/test_lib/shims_for_IE.js',
|
||||
'node_modules/systemjs/dist/system.src.js',
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
import {
|
||||
AsyncTestCompleter,
|
||||
beforeEach,
|
||||
ddescribe,
|
||||
describe,
|
||||
expect,
|
||||
iit,
|
||||
inject,
|
||||
it,
|
||||
xdescribe,
|
||||
xit,
|
||||
} from 'angular2/test_lib';
|
||||
|
||||
|
||||
export function main() {
|
||||
describe('upgrade integration',
|
||||
() => { it('should run', () => { expect(angular.version.major).toBe(1); }); });
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"version": "v4",
|
||||
"repo": "angular/DefinitelyTyped",
|
||||
"ref": "master",
|
||||
"path": "typings",
|
||||
"bundle": "typings/tsd.d.ts",
|
||||
"installed": {
|
||||
"angularjs/angular.d.ts": {
|
||||
"commit": "746b9a892629060bc853e792afff536e0ec4655e"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -24,7 +24,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"preinstall": "node tools/npm/check-node-modules --purge",
|
||||
"postinstall": "node tools/npm/copy-npm-shrinkwrap && node tools/chromedriverpatch.js && webdriver-manager update && bower install && gulp pubget.dart && tsd reinstall --overwrite --clean --config modules/angular2/tsd.json && tsd reinstall --overwrite --clean --config tools/tsd.json",
|
||||
"postinstall": "node tools/npm/copy-npm-shrinkwrap && node tools/chromedriverpatch.js && webdriver-manager update && bower install && gulp pubget.dart && tsd reinstall --overwrite --clean --config modules/angular2/tsd.json && tsd reinstall --overwrite --clean --config tools/tsd.json && tsd reinstall --overwrite --config modules/upgrade/tsd.json",
|
||||
"test": "gulp test.all.js && gulp test.all.dart"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -15,7 +15,8 @@ System.config({
|
|||
'angular2/*': 'dist/js/dev/es5/angular2/*.js',
|
||||
'angular2_material/*': 'dist/js/dev/es5/angular2_material/*.js',
|
||||
'rtts_assert/*': 'dist/js/dev/es5/rtts_assert/*.js',
|
||||
'@reactivex/rxjs/*': 'node_modules/@reactivex/rxjs/*.js'
|
||||
'@reactivex/rxjs/*': 'node_modules/@reactivex/rxjs/*.js',
|
||||
'upgrade/*': 'dist/js/dev/es5/upgrade/*.js'
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@ var global_excludes = [
|
|||
'examples/src/http/**/*',
|
||||
'examples/test/http/**/*',
|
||||
'examples/src/jsonp/**/*',
|
||||
'examples/test/jsonp/**/*'
|
||||
'examples/test/jsonp/**/*',
|
||||
'upgrade/**/*'
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue