karma - Allow execution with debug_mode=1. Hide jsonFormatter.
authorTim Otten <totten@civicrm.org>
Thu, 12 May 2022 20:38:48 +0000 (13:38 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 12 May 2022 20:49:28 +0000 (13:49 -0700)
commit30034e817798810153aae6fe43d5b66e23138d96
tree6099fd03878ffd68f74f4faa38ba3108405e1a92
parenta0ac5794509e1aadc52f64e94a90359a4e2ae2e2
karma - Allow execution with debug_mode=1. Hide jsonFormatter.

Before
------

If you enable `debug_mode=1` and run `karma`, it produces a large number of failures:

```
PhantomJS 2.1.1 (Mac OS 0.0.0): Executed 81 of 81 (55 FAILED) (2.686 secs / 2.387 secs)
```

After
-----

If you enable `debug_mode=1` and run `karma`, it passes:

```
PhantomJS 2.1.1 (Mac OS 0.0.0): Executed 81 of 81 SUCCESS (7.232 secs / 6.95 secs)
```

Comments
--------

The `jsonFormatter` plugin is a DX nicety; when browsing a page with `?angularDebug=1` and with `debug_mode=1`, it will load extra
files so that `<crm-ui-debug>` panels look pretty. But ordinarily, loading these files is extraneous.
ang/crmUi.ang.php
karma.conf.js