Skip to content

Commit

Permalink
Add UI unit tests setup (#8)
Browse files Browse the repository at this point in the history
Add setup for UI tests using Jest and React Testing Library
  • Loading branch information
saleem-hadad authored Apr 15, 2022
1 parent cec0c58 commit 0e20b9b
Show file tree
Hide file tree
Showing 6 changed files with 2,772 additions and 127 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ version: 2
jobs:
test:
docker:
- image: circleci/php:8.0.3-zts-buster-node
- image: cimg/php:8.0.17-node

steps:
- checkout
- run: composer install -n --prefer-dist
- run: cp .env.example .env
- run: php artisan key:generate
- run: ./vendor/bin/phpunit
- run: npm install
- run: npm test

workflows:
version: 2
Expand Down
Loading

0 comments on commit 0e20b9b

Please sign in to comment.