[wp-trac] [WordPress Trac] #56250: ReferenceErrors encountered when running QUnit tests

WordPress Trac noreply at wordpress.org
Tue Jul 19 16:46:22 UTC 2022


#56250: ReferenceErrors encountered when running QUnit tests
------------------------------+------------------------------
 Reporter:  desrosj           |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  javascript
------------------------------+------------------------------
Description changed by desrosj:

Old description:

> When running QUnit tests, there are a handful of errors output:
>
> {{{
> Error: ReferenceError: QUnit is not defined
> at <anonymous>:130:13
> at HTMLDocument.<anonymous> (<anonymous>:132:2)
> }}}
>
> Even with these errors, no tests actually fail.
>
> The number of errors also differences between `grun qunit` (3) and
> `qunit:compiled` (6).

New description:

 When running QUnit tests, there are a handful of errors output:

 {{{
 Error: ReferenceError: QUnit is not defined
 at <anonymous>:130:13
 at HTMLDocument.<anonymous> (<anonymous>:132:2)
 }}}

 Even with these errors, no tests actually fail.

 The number of errors also differences between `grunt qunit` (3) and `grunt
 qunit:compiled` (6).

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56250#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list