chore(): update karma tests to work with npm3

This commit is contained in:
Tim Lancina
2016-03-02 13:57:09 -06:00
parent 8bbd1380ca
commit cbe9ed8c23
3 changed files with 7 additions and 2 deletions

View File

@ -668,6 +668,7 @@ function buildDemoSass(isProductionMode) {
*/
require('./scripts/snapshot/snapshot.task')(gulp, argv, buildConfig);
// requires bundle.system to be run once
gulp.task('karma', ['tests'], function() {
var karma = require('karma').server;
return karma.start({ configFile: __dirname + '/scripts/karma/karma.conf.js' })

View File

@ -58,6 +58,7 @@
"html-entities": "^1.1.3",
"htmlparser2": "^3.8.3",
"ionic-cz-conventional-changelog": "^1.0.0",
"jasmine-core": "^2.4.1",
"jasmine-node": "^1.14.5",
"js-yaml": "^3.4.2",
"karma": "^0.12.31",

View File

@ -1,5 +1,7 @@
var buildConfig = require('../build/config');
module.exports = function(config) {
config.set({
singleRun: true,
@ -8,7 +10,8 @@ module.exports = function(config) {
frameworks: ['jasmine'],
files: [
'node_modules/systemjs/node_modules/es6-module-loader/dist/es6-module-loader.js',
'node_modules/systemjs/node_modules/es6-module-loader/dist/es6-module-loader.js', //npm2
'node_modules/es6-module-loader/dist/es6-module-loader.src.js', //npm3
'node_modules/systemjs/dist/system.js',
'scripts/karma/system.config.js',
'node_modules/angular2/bundles/angular2-polyfills.min.js',