Skip to content

Commit ed1c434

Browse files
authored
Merge pull request #64 from michalstano/stano/jest
Stano/jest
2 parents 9fac6c0 + 1ac46fe commit ed1c434

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
name: Tests
22

3-
on: push
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'master'
47

58
jobs:
9+
units:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Install modules
15+
run: npm install
16+
- name: Run tests
17+
run: npm test -- -u
18+
619
cypress-run:
720
runs-on: ubuntu-latest
821
steps:

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@
117117
},
118118
"jest": {
119119
"preset": "jest-preset-angular",
120+
"testMatch": [
121+
"<rootDir>/src/**/*.spec.ts"
122+
],
120123
"setupFilesAfterEnv": [
121124
"<rootDir>/setup-jest.ts"
122125
]

0 commit comments

Comments
 (0)