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

Convert unit tests to typescript. #34

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

drgrice1
Copy link
Member

This is built on top of #33 since it would conflict rather heavily with that pull request if it didn't (and it was created after that one).

I have been meaning to do this for a while, and it did reveal some things that needed to be fixed in the code (those were added in #33).

This does not require an npm package update since it is development tools only and doesn't change any of the code.

@drgrice1 drgrice1 force-pushed the mathspeak-plus-unit-test-work branch from 73ba1dd to e62611e Compare November 20, 2024 21:22
Also move the public/support/assert.js to test/support/assert.ts and
have it export its symbols for import in the tests instead of loading it
in the browser.
@drgrice1 drgrice1 force-pushed the mathspeak-plus-unit-test-work branch from e62611e to 00769b3 Compare December 11, 2024 12:49
Copy link
Contributor

@Alex-Jordan Alex-Jordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test anything, but I trust this is good.

@drgrice1
Copy link
Member Author

If someone does want to test this, run npm ci and npm run serve, and then open your browser to http://localhost:9292/unit-test.html. Of course all tests should pass.

This doesn't change any actual code in the build of MathQuill used by webwork2 and pg (other than a prettier formatting issue in the mathElements.ts file that should have been in the last pull request).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants