Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Add jest support, since Fusion.js uses it #88

Merged
merged 1 commit into from
Jul 26, 2018
Merged

Add jest support, since Fusion.js uses it #88

merged 1 commit into from
Jul 26, 2018

Conversation

lhorie
Copy link
Contributor

@lhorie lhorie commented Jul 20, 2018

Motivation:

Currently using the plain Jest API in Fusion.js tests causes lint errors:

test('foo', () => { // test is not defined
  expect(1).toEqual(1); // expect is not defined
})

Since we advertise Jest as being integrated into Fusion, we should make lint work with it.

Copy link
Contributor

@KevinGrandon KevinGrandon left a comment

Choose a reason for hiding this comment

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

Currently this is for folks who use expect() without the assertion helper that we pass into tests in fusion-test-utils, correct?

I think we should only do this if we remove the assertion parameter from fusion-test-utils. Let's just recommend one way of testing/making assertions?

@lhorie
Copy link
Contributor Author

lhorie commented Jul 23, 2018

See also fusionjs/fusion-cli#337

@lhorie lhorie merged commit cb2bb24 into master Jul 26, 2018
@KevinGrandon KevinGrandon deleted the add-jest branch July 26, 2018 22:05
AlexMSmithCA added a commit that referenced this pull request Jul 28, 2018
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