--test-dir doesn't appear to be working
Dids opened this issue · comments
Full command/parameters I'm using right now:
muddle --watch-dir ~/.config/hackmud/scripts_dev --test-dir ~/.config/hackmud/scripts_dev/tests --out-dir ~/.config/hackmud/user/scripts
This seems to script tests (named script.test.js
) in scripts_dev/tests
, but works fine if I move the tests to the same directory where the scripts themselves are, so it's almost like it's not taking --test-dir
in to account at all?
If I'm doing something wrong here, let me know, since I'm still struggling trying to get even a simple test to run. :)
Probably not related, but I can't seem to get any further than this when testing:
function (context, args) {
^
SyntaxError: Unexpected token (
EDIT: Not sure if it matters, but I don't use TypeScript at all, just JavaScript.
Don't mind the last comment about the unexpected token. Took me a while to figure out that I was supposed to specifically eval()
the temporary script named script.temp.js
. Somehow managed to miss that part or figured it was a typo, but glad I was wrong. :)
At any rate, the original issue is still there, where the overriding the test directory doesn't seem to work.
@Dids Interesting on --test-dir. I'll dig in and see if I can spot the issue
Re: eval the temp script
Yeah, I need to make that clear in the README. It's in the sample test file, but making people dig around in my project to find out how to do things is a bit obtuse.