You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If not specifies --root ,totoro will give a static analysis of runner's HTML content, try to find out the least common parent directory of runner and all it's assets, and assign it to --root (in this example, is toy/).
Then, totoro will use --root as root to start a HTTP server, so totoro-server can visit this test runner via {{yourServer}}/tests/runner.
But, if ./toy-spec.js visits other/src/other.js out of toy/ in some way, such as:
The whole request path is {{yourServer}}/../other/src/other.js, obviously the HTTP server cannot handle this. Now, you need to specify --root=toy/../, let the parent directoy of toy/ to be the root of HTTP server, then all required files of test could be accessed correctly.