- Notifications
You must be signed in to change notification settings - Fork20.6k
Commit437f389
authored
Build: Make dev mode work in Karma again, serve source files from disk
PRgh-4550 added support for running ES modules & AMD tests via Karma. Thisrequired reading the `esmodules` & `amd` props from both `QUnit.config` &`QUnit.urlParams`. By picking these two properties manually, the `dev` onestopped being respected while ones handled directly by QUnit were fine (like`hidepassed`). Instead of maintaining the full list of options, the code nowiterates over QUnit URL config and handles the fallbacks in a more generic way.Apart from that, all jQuery source & test files are now read directly from diskinstead of being cached by Karma so that one can run `grunt karma:chrome-debug`& work on a fix without restarting that Karma run after each change. A similareffect could have been achieved by setting `autoWatch` to `true` but then themain Karma page runs tests in an iframe by default when`grunt karma:chrome-debug` is run instead of relying on the current debug flow.Closesgh-4574Refgh-45501 parent0f780ba commit437f389
2 files changed
+43
-15
lines changedLines changed: 21 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
161 |
| - | |
162 |
| - | |
163 |
| - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
164 | 180 |
| |
165 | 181 |
| |
166 | 182 |
| |
167 | 183 |
| |
168 |
| - | |
| 184 | + | |
| 185 | + | |
169 | 186 |
| |
170 | 187 |
| |
171 | 188 |
| |
|
Lines changed: 22 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 |
| |
14 | 17 |
| |
15 |
| - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 |
| |
17 | 22 |
| |
18 | 23 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 |
| |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
| 31 | + | |
| 32 | + | |
28 | 33 |
| |
29 | 34 |
| |
30 | 35 |
| |
| |||
43 | 48 |
| |
44 | 49 |
| |
45 | 50 |
| |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
46 | 57 |
| |
47 | 58 |
| |
48 | 59 |
| |
|
0 commit comments
Comments
(0)