-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"SyntaxError: Unexpected token u" when running a file #456
Comments
Can you put this in a repo I can clone and reproduce? |
This commits include minimal coverage for the static module Closes #61 Also: avajs/ava#456
Sure, done. $ git clone https://github.com/MoOx/statinamic.git
$ cd statinamic
$ git reset --hard d3b265a87c9f7c484331e30b0d75ee07c66900d1
$ npm install
$ ava --verbose src/filename-to-url/__tests__/index.js
$ ava --verbose src/filename-to-url/__tests__/index.js To confirm, I am trying this too. |
Well, the demo effect does not seems to work. Closing for now unless I can reproduce. |
Ok I found the issue. |
|
Unfortunately, I kept this cache folder to try to reproduce, but it seems I cannot anymore... Sorry :/ |
@MoOx I've had the same issue just now, turned out I was running the file directly with node (as opposed to with ava cli) This works:
This doesnt (regardless of the fact it requires ava in the file):
See the worker, it expects three params. |
Running a test file directly via |
Ava 0.9.x (can't use 0.10 atm, see #398 (comment))
I am running ava on a file and am getting probably a weird cache issue. First time is ok, a second time is not (when I run the same file without modified it).
If I add a new (blank) line in my file, and run again, tests passes. If I run again without modifing it, boom.
Here are is my file
My test file is longer, but I can reproduce with this simple piece and the following dep that I am testing
The text was updated successfully, but these errors were encountered: