Skip to content

Commit

Permalink
Refactoring to add js unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
srobotta committed Jan 7, 2025
1 parent 6681141 commit a4949c3
Show file tree
Hide file tree
Showing 8 changed files with 1,941 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/moodle-plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ jobs:
if: ${{ always() }}
run: moodle-plugin-ci phpunit --fail-on-warning

- name: JS Unit tests
if: ${{ always() }}
run: cd /home/runner/work/moodle-tiny_cloze/moodle-tiny_cloze/moodle/lib/editor/tiny/plugins/cloze/tests/js && npm install && npm test

- name: Behat features
if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome --auto-rerun 0
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/
tests/js/node_modules/
tests/js/src/
3 changes: 3 additions & 0 deletions amd/build/cloze.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions amd/build/cloze.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a4949c3

Please sign in to comment.