Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowman 2.X: Separate unit testing per file #861

Open
8 of 11 tasks
videlais opened this issue Aug 31, 2024 · 0 comments
Open
8 of 11 tasks

Snowman 2.X: Separate unit testing per file #861

videlais opened this issue Aug 31, 2024 · 0 comments
Assignees
Milestone

Comments

@videlais
Copy link
Owner

videlais commented Aug 31, 2024

Previously, all unit testing was part of a single index.js file. This was far from efficient or well-organized. Each unit should be in its own file.

Current work:

  • Separated Misc.js
    • Created test/Misc.test.js and copied tests.
    • Misc functions should not directly bind to global window
      • Separated Misc functions into new files
      • Created new Misc testing on a per function basis
  • Separated Passage.js
    • Created 'test/Passage.test.js` and copied tests.
    • Tests currently pass
  • Separated Story.js
    • Created 'test/Story.test.js` and copied tests.
    • Tests currently pass
@videlais videlais self-assigned this Aug 31, 2024
@videlais videlais converted this from a draft issue Aug 31, 2024
@videlais videlais added this to the Snowman 2.0.4 milestone Aug 31, 2024
@videlais videlais changed the title Separate unit testing per file Snowman 2.X: Separate unit testing per file Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

No branches or pull requests

1 participant