Skip to content

Commit

Permalink
Initial setup of Jest automated testing for FormBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnetau committed Oct 6, 2023
1 parent bd8ed75 commit 86844c2
Show file tree
Hide file tree
Showing 10 changed files with 18,808 additions and 19,169 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"env": {
"browser": true,
"node": true,
"es6": true
"es6": true,
"jest": true
},
"extends": ["eslint:recommended", "prettier"],
"plugins": ["prettier"],
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/jest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run Jest Tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'

- name: Install dependencies
env:
CI: true
run: npm install

- name: Lint
run: npm run lint

- name: Build the plugin
run: npm run build:all

- name: Run Jest
run: npm run test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ dist/
site
.DS_Store
yarn-error.log
.idea
.jest
Loading

0 comments on commit 86844c2

Please sign in to comment.