Skip to content

Instantly share code, notes, and snippets.

@DavidFrahm
Last active August 29, 2015 14:18
Show Gist options
  • Save DavidFrahm/82ce34c004a54c70f2cb to your computer and use it in GitHub Desktop.
Save DavidFrahm/82ce34c004a54c70f2cb to your computer and use it in GitHub Desktop.
Ionic unit test config
{
"name": "my-app",
"private": "true",
"devDependencies": {
"ionic": "driftyco/ionic-bower#1.0.0-rc.2",
"angular-mocks": "~1.3.15"
},
"resolutions": {
"angular": "1.3.13"
}
}
module.exports = function (config) {
config.set({
basePath: '../www/',
files: [
'lib/ionic/js/ionic.bundle.js',
'lib/angular-mocks/angular-mocks.js',
'js/app.js',
'../test/unit/**/*.js'
],
autoWatch: true,
singleRun: true,
frameworks: ['jasmine'],
browsers: ['PhantomJS'],
plugins: ['karma-jasmine', 'karma-phantomjs-launcher'],
reporters: ['progress']
});
};
{
"name": "my-app",
"version": "0.0.1",
"description": "This app is so hot right now",
"dependencies": {
"gulp": "^3.5.6",
"gulp-sass": "^0.7.1",
"gulp-concat": "^2.2.0",
"gulp-minify-css": "^0.3.0",
"gulp-rename": "^1.2.0"
},
"devDependencies": {
"bower": "^1.3.3",
"gulp-util": "^2.2.14",
"jasmine-core": "^2.2.0",
"karma": "^0.12.31",
"karma-jasmine": "^0.3.5",
"karma-phantomjs-launcher": "^0.1.4",
"minimist": "^1.1.1",
"shelljs": "^0.3.0",
"xml2js": "^0.4.6"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment