-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.coffee
42 lines (42 loc) · 1.2 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
33
34
35
36
37
38
39
40
41
42
webpack = require "webpack"
path = require "path"
module.exports = (config) ->
config.set
preprocessors: "test/*.coffee": ["webpack", "sourcemap"]
webpack:
devtool: 'inline-source-map'
resolve:
extensions: [".js",".coffee"]
module:
rules: [
{ test: /\.coffee$/, use: ["coffee-loader"] }
{
test: /\.(js|coffee)$/
use: "ceri-loader"
enforce: "post"
exclude: /node_modules/
}
]
plugins: [
new webpack.DefinePlugin "process.env.NODE_ENV": JSON.stringify('test')
new webpack.SourceMapDevToolPlugin
filename: null
test: /\.coffee($|\?)/i
]
files: [{pattern: "test/index.coffee", watched: false}]
frameworks: ["mocha","chai-dom","sinon-chai","ceri"]
plugins: [
require("./test/ceri")
require("karma-sinon-chai")
require("karma-chai-dom")
require("karma-chrome-launcher")
require("karma-firefox-launcher")
require("karma-mocha")
require("karma-webpack")
require("karma-sourcemap-loader")
]
browsers: ["Chromium","Firefox"]
client:
mocha:
{}
#grep: "with shared objs"