diff --git a/.prettierignore b/.prettierignore index ab57381..056c9f1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ node_modules build dist +coverage diff --git a/.travis.yml b/.travis.yml index d436b8a..eb8da0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,8 +25,7 @@ before_install: script: # - ./scripts/install.sh # runs automatically with npm ci - - $(npm bin)/cypress run --record - #- ./scripts/test.sh + - ./scripts/test.sh - ./scripts/coverage.sh - ./scripts/build.sh diff --git a/README.md b/README.md index 789b11e..036c14a 100644 --- a/README.md +++ b/README.md @@ -94,14 +94,14 @@ vi client/.env.local Test suite is setup with [Jest](https://jestjs.io) and [react-testing-library](https://github.com/kentcdodds/react-testing-library) for unit testing, and [Cypress](https://www.cypress.io) for integration testing. -### Unit Tests - -To run all unit tests, including all linting tests: +To run all linting, unit and integration tests in one go, run: ```bash npm test ``` +### Unit Tests + For local development, you can start the test runners for client & server in a watch mode. ```bash diff --git a/client/src/components/molecules/VersionNumbers/index.tsx b/client/src/components/molecules/VersionNumbers/index.tsx index b6545f8..b446619 100644 --- a/client/src/components/molecules/VersionNumbers/index.tsx +++ b/client/src/components/molecules/VersionNumbers/index.tsx @@ -134,9 +134,7 @@ export default class VersionNumbers extends PureComponent< return (

v{commons.version} {squid.network && `(${squid.network})`} diff --git a/client/src/components/organisms/Footer.tsx b/client/src/components/organisms/Footer.tsx index 8e54a22..bc69c5b 100644 --- a/client/src/components/organisms/Footer.tsx +++ b/client/src/components/organisms/Footer.tsx @@ -16,9 +16,7 @@ const Footer = () => ( {state => state.totalAssets > 0 && - ` With a total of ${ - state.totalAssets - } registered assets.` + ` With a total of ${state.totalAssets} registered assets.` }

diff --git a/client/src/components/templates/Asset/AssetDetails.tsx b/client/src/components/templates/Asset/AssetDetails.tsx index 239ecdb..222143f 100644 --- a/client/src/components/templates/Asset/AssetDetails.tsx +++ b/client/src/components/templates/Asset/AssetDetails.tsx @@ -34,9 +34,7 @@ export default class AssetDetails extends PureComponent {