mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(): update karma tests to work with npm3
This commit is contained in:
@ -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' })
|
||||
|
@ -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",
|
||||
@ -88,4 +89,4 @@
|
||||
"path": "node_modules/ionic-cz-conventional-changelog"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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',
|
||||
|
Reference in New Issue
Block a user