Commit a7ab470
Add Vitest testing framework with initial test suites
- Install vitest as dev dependency
- Add vitest.config.js configuration
- Add conditional exports to src/assets/js/games/config.js for testability
- Create tests/config.test.mjs with 14 tests for game config module
- Create tests/eleventy-config.test.mjs with 13 tests for Eleventy config
- Create tests/build-data.test.mjs with 5 tests for build data module
- Add test and test:watch scripts to package.json
- Add .github/workflows/tests.yml CI workflow
Agent-Logs-Url: https://github.com/NextCommunity/NextCommunity.github.io/sessions/58354e39-729b-4d04-8d52-2b31f4f40012
Co-authored-by: jbampton <418747+jbampton@users.noreply.github.com>1 parent 4ebd467 commit a7ab470
File tree
8 files changed
+1231
-3
lines changed- .github/workflows
- src/assets/js/games
- tests
8 files changed
+1231
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments