rojo/tests/rojo_test
Kenneth Loeffler 96987af71d
Fix broken serve tests on macOS (#824)
Right now, serve tests will fail when Rojo is built with the FSEvent
backend. The cause is essentially due to the fact that `/var` (where
temporary directories for serve tests are located) on macOS is actually
a symlink to `/private/var`. Paths coming from FSEvent always have
symlinks expanded, but Rojo never expands symlinks. So, Rojo's paths
during these tests look like `/var/*` while the FSEvent paths look like
`/private/var/*`. When Rojo's change processor receives these events, it
considers them outside the project and does not apply any changes,
causing serve tests to time out.

To work around this, we can call `Path::canonicalize` before passing the
project path to `rojo serve` during serve tests. Rojo does need to
better support symlinks (which would also solve the problem), but I
think that can be left for another day because it's larger in scope and
I mostly just want working tests before addressing #609.
2023-12-28 23:17:00 +00:00
..
internable.rs Upgrade to rbx_dom_weak 2.0 (#377) 2021-02-18 20:56:09 -05:00
io_util.rs Fix most test output (but not termcolor) 2021-11-22 13:59:12 -05:00
mod.rs Replace rojo-test with regular tests folder again (#323) 2020-05-20 15:30:05 -07:00
serve_util.rs Fix broken serve tests on macOS (#824) 2023-12-28 23:17:00 +00:00