Skip to content

Commit

Permalink
Added tests on ./test/*Spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dyuvzhenko committed Nov 14, 2017
1 parent fc4af26 commit 85f435e
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions webpack/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,36 @@ if (ENV === 'development') {

compressing: false,

module: {
rules: [{
enforce: 'pre',
test: /Spec\.js$/,
include: path.resolve(__dirname, '../test'),
use: [{
loader: 'jshint-loader',
options: {
node: true,
globals: {
angular: false,
inject: false,
jQuery: false,
jasmine: false,
afterEach: false,
beforeEach: false,
ddescribe: false,
describe: false,
expect: false,
iit: false,
it: false,
spyOn: false,
xdescribe: false,
xit: false
}
}
}]
}]
},

devtool: 'inline-source-map',

entry: {},
Expand All @@ -39,6 +69,8 @@ if (ENV === 'production') {

compressing: true,

module: {},

devtool: 'source-map',

entry: {
Expand Down Expand Up @@ -83,7 +115,7 @@ module.exports = {
devtool: configEnv.devtool,

module: {
rules: [
rules: [...configEnv.module.rules,
{
test: /\.js$/,
exclude: /node_modules/,
Expand All @@ -97,7 +129,7 @@ module.exports = {
test: /\.js$/,
include: path.resolve(__dirname, '../src'),
use: [{
loader: "jshint-loader"
loader: 'jshint-loader'
}]
}
]
Expand Down

0 comments on commit 85f435e

Please sign in to comment.