-
Notifications
You must be signed in to change notification settings - Fork 2
/
karma.conf.coffee
32 lines (32 loc) · 1 KB
/
karma.conf.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = (config) ->
config.set
preprocessors:
"**/*.coffee": ["webpack",'sourcemap']
webpack:
devtool: 'inline-source-map'
resolve:
extensions: ["",".js",".coffee",".vue"]
module:
loaders: [
{ test: /\.coffee$/, loader: "coffee-loader" }
{ test: /\.vue$/, loader: "vue-loader" }
{ test: /\.html$/, loader: "html"}
{ test: /\.css$/, loader: "style-loader!css-loader" }
]
webpackMiddleware:
noInfo: true
files: ["test/*.coffee"]
frameworks: ["mocha","chai-dom","chai-spies","chai","vue-component"]
plugins: [
require("karma-chai")
require("karma-chai-dom")
require("karma-chrome-launcher")
require("karma-firefox-launcher")
require("karma-mocha")
require("karma-webpack")
require("karma-sourcemap-loader")
require("karma-spec-reporter")
require("karma-chai-spies")
require("karma-vue-component")
]
browsers: ["Chromium","Firefox"]