forked from FormidableLabs/component-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.dev.js
31 lines (30 loc) · 855 Bytes
/
karma.conf.dev.js
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
"use strict";
/*
* Karma Configuration: "dev" version.
*
* This configuration relies on a `webpack-dev-server` already running and
* bundling `webpack.config.test.js` on port 3001. If this is not running,
* then the alternate `karma.conf.js` file will _also_ run the webpack dev
* server during the test run.
*/
module.exports = function (config) {
config.set({
frameworks: ["mocha", "phantomjs-shim"],
reporters: ["spec"],
browsers: ["PhantomJS"],
basePath: ".", // repository root.
files: [
// Sinon has issues with webpack. Do global include.
"node_modules/sinon/pkg/sinon.js",
// Test bundle (must be created via `npm run dev|hot|server-test`)
"http://127.0.0.1:3001/assets/main.js"
],
port: 9999,
singleRun: true,
client: {
mocha: {
ui: "bdd"
}
}
});
};