Skip to content

Commit fe5ad76

Browse files
authored
Merge pull request #2633 from input-output-hk/feature/jest-unit-tests
[DDW-771] Add jest and couple of unit tests
2 parents 6642785 + 2874b07 commit fe5ad76

File tree

10 files changed

+3352
-50
lines changed

10 files changed

+3352
-50
lines changed

.eslintrc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
"prettier",
1313
"prettier/babel",
1414
"prettier/flowtype",
15-
"prettier/react"
15+
"prettier/react",
16+
"plugin:jest/recommended"
1617
],
1718
"env": {
1819
"browser": true,
1920
"mocha": true,
20-
"node": true
21+
"node": true,
22+
"jest": true
2123
},
2224
"rules": {
2325
"class-methods-use-this": 0,
@@ -77,7 +79,8 @@
7779
"flowtype",
7880
"import",
7981
"promise",
80-
"react"
82+
"react",
83+
"jest"
8184
],
8285
"globals": {
8386
"API": true,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Run Tests for Pull Requests
2+
on:
3+
pull_request:
4+
branches:
5+
- develop
6+
- master
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repo
12+
uses: actions/checkout@v2
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: "12"
17+
- run: yarn install
18+
- run: yarn test:jest

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Chores
66

7+
- Added jest library for unit testing ([PR 2633](https://github.com/input-output-hk/daedalus/pull/2633))
78
- Updated `cardano-launcher` to version `0.20211105.1` and added Cardano Node RTS flags which improve resource usage ([PR 2735](https://github.com/input-output-hk/daedalus/pull/2735), [PR 2741](https://github.com/input-output-hk/daedalus/pull/2741))
89

910
## 4.5.1

0 commit comments

Comments
 (0)