Skip to content

Commit

Permalink
Merge pull request #64 from michalstano/stano/jest
Browse files Browse the repository at this point in the history
Stano/jest
  • Loading branch information
michalstano authored Jul 30, 2021
2 parents 9fac6c0 + 1ac46fe commit ed1c434
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
name: Tests

on: push
on:
push:
branches-ignore:
- 'master'

jobs:
units:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Run tests
run: npm test -- -u

cypress-run:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
},
"jest": {
"preset": "jest-preset-angular",
"testMatch": [
"<rootDir>/src/**/*.spec.ts"
],
"setupFilesAfterEnv": [
"<rootDir>/setup-jest.ts"
]
Expand Down

0 comments on commit ed1c434

Please sign in to comment.