Skip to content

Commit

Permalink
πŸ”€ Merge pull request #162 from alexlee-dev/develop
Browse files Browse the repository at this point in the history
πŸ“¦ v0.6.0
  • Loading branch information
Alex Lee committed Sep 27, 2019
2 parents 4b9e037 + b5ee510 commit 9494174
Show file tree
Hide file tree
Showing 78 changed files with 3,381 additions and 3,056 deletions.
13 changes: 12 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// {
// "presets": ["@babel/preset-env", "@babel/preset-react"],
// "plugins": ["istanbul"]
// }

{
"presets": ["@babel/preset-env", "@babel/preset-react"]
"presets": ["@babel/preset-react"],
"env": {
"test": {
"plugins": ["istanbul"]
}
},
"plugins": ["transform-class-properties"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ typings/

# production
/build
/dist

# misc
.DS_Store
Expand Down
3 changes: 3 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"exclude": ["src/serviceWorker.js", "src/index.js"]
}
39 changes: 28 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,42 @@ cache:
directories:
- ~/.npm
- ~/.cache
override:
- npm ci
- npm run cy:verify

defaults: &defaults
script:
# ## print all Travis environment variables for debugging
# - $(npm bin)/print-env TRAVIS
- npm run start:ci &
- npm run cy:run
# after all tests finish running we need
# to kill all background jobs (like "npm start &")
- npm run cy:test
- npm run report:text
- npm run coveralls
- kill $(jobs -p) || true

jobs:
include:
# we have multiple jobs to execute using just a single stage
# but we can pass group name via environment variable to Cypress test runner
- stage: test
env:
- STAGE_NAME="1x-electron on Travis CI"
<<: *defaults
# # see https://github.com/cypress-io/circleci-orb
# version: 2.1
# orbs:
# cypress: cypress-io/cypress@1
# workflows:
# build:
# jobs:
# - cypress/run:
# # we need to start the web application
# start: npm start
# command: NODE_ENV=test npm run cypress:run
# # there are no jobs to follow this one
# # so no need to save the workspace files (saves time)
# no-workspace: true
# post-steps:
# # store the created coverage report folder
# # you can click on it in the CircleCI UI
# # to see live static HTML site
# - store_artifacts:
# path: coverage
# # show code coverage numbers
# - run: npm run report:coverage:text
# # send code coverage to coveralls.io
# # https://coveralls.io/github/cypress-io/cypress-example-todomvc-redux
# - run: npm run coveralls
2 changes: 2 additions & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"baseUrl": "http://localhost:1234",
"ignoreTestFiles": ["**/*.snap", "**/__snapshot__/*"],
"video": false
}
Loading

0 comments on commit 9494174

Please sign in to comment.