-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(coveralls): setup coverage reporting
- install and configure coveralls for test coverage reporting - configure travis to run coverage script - add new test file - configure jest to transform imported css [Finishes #162953723]
- Loading branch information
Showing
9 changed files
with
77 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
dist | ||
coverage |
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ cache: | |
- node_modules | ||
script: | ||
- npm test | ||
- npm run coveralls |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# kiakiafood [![Build Status](https://travis-ci.org/akhilome/kiakiafood.svg?branch=develop)](https://travis-ci.org/akhilome/kiakiafood) | ||
# kiakiafood [![Build Status](https://travis-ci.org/akhilome/kiakiafood.svg?branch=develop)](https://travis-ci.org/akhilome/kiakiafood) [![Coverage Status](https://coveralls.io/repos/github/akhilome/kiakiafood/badge.svg?branch=develop)](https://coveralls.io/github/akhilome/kiakiafood?branch=develop) | ||
|
||
A resturant delivery application |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"setupFiles": ["<rootDir>/src/tests/setupTests.js"], | ||
"snapshotSerializers": ["enzyme-to-json/serializer"] | ||
"snapshotSerializers": ["enzyme-to-json/serializer"], | ||
"moduleNameMapper": { | ||
"\\.(css)$": "<rootDir>/src/tests/__mocks__/styleMock.js" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 = {}; |
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,10 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import App from '../../components/App'; | ||
|
||
describe('App component', () => { | ||
it('should render app correctly', () => { | ||
const wrapper = shallow(<App />); | ||
expect(wrapper).toMatchSnapshot(); | ||
}); | ||
}); |
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,24 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`App component should render app correctly 1`] = ` | ||
<BrowserRouter> | ||
<Switch> | ||
<Route | ||
component={[Function]} | ||
exact={true} | ||
path="/" | ||
/> | ||
<Route | ||
component={[Function]} | ||
path="/login" | ||
/> | ||
<Route | ||
component={[Function]} | ||
path="/signup" | ||
/> | ||
<Route | ||
component={[Function]} | ||
/> | ||
</Switch> | ||
</BrowserRouter> | ||
`; |