Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
Restructure e2e and add coverage output
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Folkesson authored and axelssonHakan committed Jan 25, 2019
1 parent f537ef3 commit 299ba36
Show file tree
Hide file tree
Showing 9 changed files with 2,905 additions and 2,831 deletions.
7 changes: 4 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@babel/preset-env",
{
"targets": {
"node": "current"
"browsers": "last 2 versions"
}
}
],
Expand All @@ -30,8 +30,9 @@
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-react-jsx"
"@babel/plugin-transform-react-jsx",
"istanbul"
]
}
}
},
}
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ jobs:
name: E2E tests
command: |
DocID=$(curl -s --data-binary @data/drugcases.qvf http://localhost:9076/v1/apps/import | jq -r '.attributes.id')
npx parcel src/index.html &
npm run start:cov &
DocID=$DocID npm run test:e2e
npx nyc report -r html
- save_cache:
paths:
Expand All @@ -54,6 +55,9 @@ jobs:
- store_artifacts:
path: test/e2e/__artifacts__

- store_artifacts:
path: coverage

- run:
name: Sync dist to S3 bucket
command: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/
dist/
coverage/
.nyc_output/
.cache/
.chrome-profile/
.DS_Store
Expand Down
Loading

0 comments on commit 299ba36

Please sign in to comment.