mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
move unit tests
This commit is contained in:
@@ -3,9 +3,9 @@ import 'angular';
|
|||||||
import 'angular-mocks';
|
import 'angular-mocks';
|
||||||
|
|
||||||
// Import custom Angular module dependencies
|
// Import custom Angular module dependencies
|
||||||
import '../src/i18n';
|
import '../../src/i18n';
|
||||||
import '../lib/services';
|
import '../../lib/services';
|
||||||
import '../lib/components';
|
import '../../lib/components';
|
||||||
|
|
||||||
// Import tests
|
// Import tests
|
||||||
import './panel-body.spec';
|
import './panel-body.spec';
|
||||||
@@ -11,7 +11,7 @@ module.exports = config => {
|
|||||||
reporters: ['progress'],
|
reporters: ['progress'],
|
||||||
files: [
|
files: [
|
||||||
'./index.js',
|
'./index.js',
|
||||||
'../lib/components/**/*.html'
|
'../../lib/components/**/*.html'
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
'karma-webpack',
|
'karma-webpack',
|
||||||
@@ -20,13 +20,13 @@ module.exports = config => {
|
|||||||
'karma-ng-html2js-preprocessor'
|
'karma-ng-html2js-preprocessor'
|
||||||
],
|
],
|
||||||
preprocessors: {
|
preprocessors: {
|
||||||
'../lib/components/**/*.html': 'ng-html2js',
|
'../../lib/components/**/*.html': 'ng-html2js',
|
||||||
'./index.js': 'webpack'
|
'./index.js': 'webpack'
|
||||||
},
|
},
|
||||||
ngHtml2JsPreprocessor: {
|
ngHtml2JsPreprocessor: {
|
||||||
moduleName: 'at.test.templates',
|
moduleName: 'at.test.templates',
|
||||||
cacheIdFromPath: function (filepath) {
|
cacheIdFromPath: function (filepath) {
|
||||||
filepath = filepath.replace(path.join(__dirname, '../lib'), '');
|
filepath = filepath.replace(path.join(__dirname, '../../lib'), '');
|
||||||
return '/static/partials' + filepath;
|
return '/static/partials' + filepath;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
"jshint": "grunt jshint:source --no-color",
|
"jshint": "grunt jshint:source --no-color",
|
||||||
"test:ci": "npm run test -- --single-run --reporter junit,dots --browsers=PhantomJS",
|
"test:ci": "npm run test -- --single-run --reporter junit,dots --browsers=PhantomJS",
|
||||||
"lint": "./node_modules/.bin/eslint -c .eslintrc.js .",
|
"lint": "./node_modules/.bin/eslint -c .eslintrc.js .",
|
||||||
"component-test": "./node_modules/.bin/karma start client/test/karma.conf.js",
|
"component-test": "./node_modules/.bin/karma start client/test/unit/karma.conf.js",
|
||||||
"lint-dev": "./node_modules/.bin/nodemon --exec \"./node_modules/.bin/eslint -c .eslintrc.js .\" --watch \"client/components/**/*.js\"",
|
"lint-dev": "./node_modules/.bin/nodemon --exec \"./node_modules/.bin/eslint -c .eslintrc.js .\" --watch \"client/components/**/*.js\"",
|
||||||
"dev": "./node_modules/.bin/webpack --config build/webpack.development.js --progress",
|
"dev": "./node_modules/.bin/webpack --config build/webpack.development.js --progress",
|
||||||
"watch": "./node_modules/.bin/webpack-dev-server --config build/webpack.watch.js --progress",
|
"watch": "./node_modules/.bin/webpack-dev-server --config build/webpack.watch.js --progress",
|
||||||
|
|||||||
Reference in New Issue
Block a user