mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-24 21:13:18 +00:00
* Install react-testing-library * Add some trivial tests with snapshot * Add File transfer tests * Add Home component test * Add Chat tests * Add tests for nav * 100% coverage for About component * 100% coverage room link * 100% coverage for RoomLocked * 100% coverage for T component * 100% coverage Settings * More 90% coverage for Chat component * Ignore some file from coverage * 100% coverage fo redux actions * 100% coverage for translations * Near 100% coverage for reducer * Better coverage for Home component * Run tests in circleCI
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
# Javascript Node CircleCI 2.0 configuration file
|
|
#
|
|
|
|
jobs:
|
|
test-job:
|
|
docker:
|
|
- image: 'circleci/node:lts'
|
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
# Download and cache dependencies
|
|
- restore_cache:
|
|
keys:
|
|
- dependencies-{{ checksum "yarn.lock" }}
|
|
# fallback to using the latest cache if no exact match is found
|
|
- dependencies-
|
|
|
|
- run: yarn setup
|
|
|
|
- save_cache:
|
|
paths:
|
|
- node_modules
|
|
- client/node_modules
|
|
- server/node_modules
|
|
key: dependencies-{{ checksum "yarn.lock" }}
|
|
|
|
- run:
|
|
command: yarn test
|
|
environment:
|
|
TZ: UTC
|
|
REACT_APP_COMMIT_SHA: some_sha
|
|
|
|
- store_artifacts: # For coverage report
|
|
path: client/coverage
|
|
|
|
orbs: # declare what orbs we are going to use
|
|
node: circleci/node@2.0.2 # the node orb provides common node-related configuration
|
|
|
|
version: 2.1
|
|
|
|
workflows:
|
|
tests:
|
|
jobs:
|
|
- test-job
|