[wp-trac] [WordPress Trac] #48229: Console error when running QUnit Test Suite
WordPress Trac
noreply at wordpress.org
Wed Sep 30 19:15:08 UTC 2020
#48229: Console error when running QUnit Test Suite
-------------------------------+------------------------------
Reporter: Hareesh Pillai | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: minor | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by iandunn):
* keywords: => reporter-feedback
Comment:
Hi Hareesh 👋🏻
It's working for me now, are you still seeing that error?
If so, it could be a routing issue with your web server, since the tests
are setup a little weird. Here's my Nginx config:
{{{
server {
listen 80;
server_name wp-develop.test;
root /Users/ian-work/vhosts/localhost/wp-
develop.test/public_html/build;
location /tests/ {
root /Users/ian-work/vhosts/localhost/wp-
develop.test/public_html/;
try_files $uri $uri/ /wordpress/$uri
/wordpress/index.php?$args;
}
# this is also necessary for qunit
location /node_modules/ {
root /Users/ian-work/vhosts/localhost/wp-
develop.test/public_html/;
try_files $uri $uri/ /wordpress/$uri
/wordpress/index.php?$args;
}
}
}}}
If routing isn't the problem, you could try
[https://make.wordpress.org/core/handbook/testing/automated-testing/qunit/
opening them directly in your browser], with a URL like
`file:///Users/myusername/dev/develop.svn.wordpress.org/trunk/tests/qunit/index.html`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48229#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list