@@ -26,6 +26,8 @@ npm i -D karma-webpack
26
26
27
27
<h2 align =" center " >Usage</h2 >
28
28
29
+ ** Note: it's very important that you include ` webpack ` as a framework, otherwise your tests will not run.**
30
+
29
31
** karma.conf.js**
30
32
``` js
31
33
module .exports = (config ) => {
@@ -34,6 +36,11 @@ module.exports = (config) => {
34
36
35
37
// add webpack to your list of frameworks
36
38
frameworks: [' mocha' , ' webpack' ],
39
+
40
+ plugins: [
41
+ ' karma-webpack' ,
42
+ ' karma-mocha' ,
43
+ ],
37
44
38
45
files: [
39
46
// all files ending in ".test.js"
@@ -43,8 +50,7 @@ module.exports = (config) => {
43
50
44
51
preprocessors: {
45
52
// add webpack as preprocessor
46
- ' test/*_test.js' : [ ' webpack' ],
47
- ' test/**/*_test.js' : [ ' webpack' ]
53
+ ' test/**/*.test.js' : [ ' webpack' ]
48
54
},
49
55
50
56
webpack: {
@@ -150,19 +156,30 @@ webpack: {
150
156
}
151
157
```
152
158
153
- <h2 align =" center " >Options</h2 >
154
-
155
- This is the full list of options you can specify in your ` karma.conf.js `
156
-
157
- | Name| Type| Default| Description|
158
- | :--:| :--:| :-----:| :----------|
159
- | [ ** ` webpack ` ** ] ( #webpack ) | ` {Object} ` | ` {} ` | Pass ` webpack.config.js ` to ` karma ` |
159
+ <h2 align =" center " >Maintainers</h2 >
160
160
161
- ### ` webpack `
161
+ <table >
162
+ <tbody >
163
+ <tr>
164
+ <td align="center">
165
+ <img width="150" height="150"
166
+ src="https://avatars0.githubusercontent.com/u/7922109?v=4&s=150">
167
+ <br>
168
+ <a href="https://github.com/ryanclark">Ryan Clark</a>
169
+ </td>
170
+ <td align="center">
171
+ <img width="150" height="150"
172
+ src="https://avatars3.githubusercontent.com/u/2045543?v=4&s=150">
173
+ <br>
174
+ <a href="https://github.com/AprilArcus">April Arcus</a>
175
+ </td>
176
+ </tr>
177
+ <tbody >
178
+ </table >
162
179
163
- ` webpack ` configuration ( ` webpack.config.js ` ).
180
+ < h2 align = " center " >Previous Maintainers</ h2 >
164
181
165
- < h2 align = " center " >Maintainers</ h2 >
182
+ Previous maintainers of the ` karma-webpack ` plugin that have done such amazing work to get it to where it is today.
166
183
167
184
<table >
168
185
<tbody >
0 commit comments