Skip to content

Commit

Permalink
Merge pull request #1438 from lucasnetau/testing_framework
Browse files Browse the repository at this point in the history
Introduce Jest automated testing into formBuilder
  • Loading branch information
lucasnetau authored Oct 6, 2023
2 parents 499849c + 1380177 commit 7441284
Show file tree
Hide file tree
Showing 11 changed files with 18,818 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
10 changes: 10 additions & 0 deletions docs/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<title>Title</title>
</head>
<body>

</body>
</html>
Loading

0 comments on commit 7441284

Please sign in to comment.