-
Notifications
You must be signed in to change notification settings - Fork 164
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
Increase test coverage #451
Merged
Merged
Changes from 6 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
6364992
Migrate to jest and increase test coverage
4f65d2a
Remove not used methods from Carousel
aa6f1bd
Generate lcov report
a2c385c
Add coverage badge
7028a6d
Fix CI config
f42780b
Update yarn.lock
35abb74
Update test/unit/carousel.test.js
f959adb
toEqual(true) -> toBeTruthy();
8c5a37b
Merge remote-tracking branch 'origin/fix/increase-test-coverage' into…
4b8c039
Update test/unit/carousel.test.js
38231d3
Update test/unit/carousel.test.js
c287545
Update test/unit/carousel.test.js
e4307e8
Update test/unit/carousel.test.js
e01d13a
Update test/unit/carousel.test.js
0b8609c
Update test/unit/carousel.test.js
ee618aa
Update test/unit/carousel.test.js
d36b62e
Update test/unit/carousel.test.js
910d4be
Update test/unit/carousel.test.js
49bb9d0
Update test/unit/carousel.test.js
f130910
Update test/unit/carousel.test.js
6210c26
Update test/unit/carousel.test.js
5ad9446
Update test/unit/carousel.test.js
4855f82
Update test/unit/carousel.test.js
6219a47
Update test/unit/carousel.test.js
5c9be25
Update test/unit/carousel.test.js
1e225fd
Update test/unit/carousel.test.js
65aeeec
Update test/unit/carousel.test.js
14ee0fb
Update test/unit/carousel.test.js
2b20850
Update test/unit/carousel.test.js
4c6119f
Update test/unit/carousel.test.js
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
testEnvironment: 'node', | ||
testMatch: ['<rootDir>/test/unit/**.test.js'], | ||
moduleNameMapper: { '\\.(css|scss)$': '<rootDir>/test/unit/__mocks__/styleMock.js' }, | ||
setupFilesAfterEnv: [ | ||
'<rootDir>/jest.setup.js', | ||
], | ||
coverageReporters: [ | ||
'text', | ||
['lcov', { | ||
projectRoot: './', | ||
}]], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { configure } from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
|
||
configure({ adapter: new Adapter() }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these removed methods unneeded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the deployed version and it seems it works as expected. Also tests e2e are passing so I guess everything works all right