Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Add tests for strict rule #241

Merged
merged 1 commit into from
Jan 30, 2016
Merged

Add tests for strict rule #241

merged 1 commit into from
Jan 30, 2016

Conversation

jmm
Copy link
Member

@jmm jmm commented Jan 30, 2016

Ref #228. These are failing now. With babel/acorn-to-esprima#5, $ npm test passes, including these.

@hzoo
Copy link
Member

hzoo commented Jan 30, 2016

Sigh npm 2 issues not sure why that is happening now.

@jmm
Copy link
Member Author

jmm commented Jan 30, 2016

Sorry, I'm not sure what you mean.

@hzoo
Copy link
Member

hzoo commented Jan 30, 2016

The travis build is failing with everything but node 5 (npm 3). Error: Cannot find module 'estraverse'

@jmm
Copy link
Member Author

jmm commented Jan 30, 2016

Ahh, ok, thanks. I didn't even look because I expected it to fail when I submitted the PR.

@hzoo
Copy link
Member

hzoo commented Jan 30, 2016

The dependencies didn't change either - I guess something about the test/integration.js is making it error (although that is weird)

@hzoo
Copy link
Member

hzoo commented Jan 30, 2016

Oh because you are using the eslint git submodule instead of var eslint = require("eslint"); probably

@jmm
Copy link
Member Author

jmm commented Jan 30, 2016

Hmm, did I require eslint wrong?

@jmm
Copy link
Member Author

jmm commented Jan 30, 2016

Sorry, posted before I saw your latest comment. I'm fuzzy on the details of how eslint is integrated here (e.g. why it's submodule). So it should just be require("eslint")?

@hzoo
Copy link
Member

hzoo commented Jan 30, 2016

Yeah just require it using node_modules.

I was planning on using the submodule for testing all their rules with the parser but was having issues (feel free to look into that as well). https://github.com/babel/babel-eslint/blob/master/package.json#L19-L20

If you look at the other tests/ they use the eslint in the package.json/node_modules (like you normally would).

Sorry that's not more obvious (there's no docs about any of this)

@jmm
Copy link
Member Author

jmm commented Jan 30, 2016

Ok, done ✨. Sorry about that. I do see that's how the other test file does it -- overlooked that somehow. As you said, some more high-level docs would be helpful too.

I was planning on using the submodule for testing all their rules with the parser but was having issues (feel free to look into that as well).

Oh, ok, thanks.

@jmm
Copy link
Member Author

jmm commented Jan 30, 2016

Looks like it's now just failing on 0.12 for something unrelated.

@hzoo
Copy link
Member

hzoo commented Jan 30, 2016

Ah yeah that test - will fix (or skip for now). Ok the funny part is that it's skipped but it still fails

hzoo added a commit that referenced this pull request Jan 30, 2016
Add tests for `strict` rule
@hzoo hzoo merged commit 880dc03 into babel:master Jan 30, 2016
nicolo-ribaudo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants