Skip to content
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

What should I run so I can run the tests? #5

Closed
retorquere opened this issue Nov 7, 2019 · 4 comments
Closed

What should I run so I can run the tests? #5

retorquere opened this issue Nov 7, 2019 · 4 comments

Comments

@retorquere
Copy link
Contributor

I've ran

npm run babel
npm run nearley
npm run astrocite
npm test

but I still get

Error: Cannot find module './grammar'
@larsgw
Copy link
Member

larsgw commented Nov 7, 2019

Can you run tree or something similar on the src directory so I can compare?

@larsgw
Copy link
Member

larsgw commented Nov 7, 2019

Actually, I think it's just that npm run babel should be done last as it has to copy the generated grammar.js files.

@retorquere
Copy link
Contributor Author

npm run babel && npm test

seems to do the job (at least I see no error, still waiting for output)

might be convenient to add

"pretest": "npm run babel"

to package.json

@larsgw
Copy link
Member

larsgw commented Nov 7, 2019

Yeah, I noticed I forgot to as well. Usually I have @babel/register for tests.

@larsgw larsgw closed this as completed Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants