Skip to content

Commit 009df2e

Browse files
authored
refine pipeline to run prettier and tests (#7)
* refine pipeline to run prettier and tests * fix prettier failure
1 parent 08a868b commit 009df2e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ cache: yarn
55

66
script:
77
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
8+
- yarn prettier
9+
- yarn test
810
- yarn build
911
- cd ./packages/docs
1012
- yarn install

packages/core/tests/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import toJson from "enzyme-to-json";
66
describe("core component", () => {
77
test("will render", () => {
88
const cmp = shallow(<HelloWorld />);
9-
expect(toJson((cmp))).toMatchSnapshot();
9+
expect(toJson(cmp)).toMatchSnapshot();
1010
});
1111
});

0 commit comments

Comments
 (0)