Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove all types of imports/requires #82

Merged
merged 1 commit into from
Jan 6, 2017
Merged

Remove all types of imports/requires #82

merged 1 commit into from
Jan 6, 2017

Conversation

orta
Copy link
Member

@orta orta commented Jan 5, 2017

I forgot that require imports even exist, so when I was creating the Dangerfile for Jest I realized I needed to add this in 👍

--

Note: Jest is currently infinitely looping on yarn run jest -- --watch - I assume it's the code coverage stuff that is triggering a new run, will try dig into it tomorrow.

Copy link
Member

@macklinu macklinu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, otherwise LGTM, nice catch.


it("also handles require style imports", () => {
const before = `
const { danger, warn, fail, message } from 'danger'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is valid syntax/tests what your it() description states. The require imports would look like:

const { danger, warn, fail, message } = require('danger')

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, good code reviewing!

@codecov-io
Copy link

codecov-io commented Jan 6, 2017

Current coverage is 0.00% (diff: 100%)

Merging #82 into master will not change coverage

@@           master   #82   diff @@
===================================
  Files           4     4          
  Lines          35    35          
  Methods         1     1          
  Messages        0     0          
  Branches        7     7          
===================================
  Hits            0     0          
  Misses         35    35          
  Partials        0     0          

Powered by Codecov. Last update 86b1f52...f4febbf

@orta orta merged commit 0782c67 into master Jan 6, 2017
@orta orta deleted the requires branch January 6, 2017 15:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants