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

Final PluginImpl.compile() tests, custom matchers #6

Merged
merged 1 commit into from Jan 6, 2024

Conversation

mbland
Copy link
Owner

@mbland mbland commented Jan 6, 2024

PluginImpl.compile() is now 100% covered, as is the whole package, with these tests for partial imports, partial registration, and related options.

Added custom Vitest expect matchers, toStartWith and toEndWith. I may want to package these at some point, though I'm not sure.


Though the code's 100% covered by small-to-medium tests, I do want to add an integration test to ensure the generated code loads correctly. (test/main.test.js is the medium-ish test.) I've effectively done that already in the strcalc/src/main/frontend tests from mbland/tomcat-servlet-testing-example. I just need to port some of the work I did there over here.

PluginImpl.compile() is now 100% covered, as is the whole package, with
these tests for partial imports, partial registration, and related
options.

Added custom Vitest expect matchers, toStartWith and toEndWith. I may
want to package these at some point, though I'm not sure.

- https://vitest.dev/guide/extending-matchers.html

---

Though the code's 100% covered by small-to-medium tests, I do want to
add an integration test to ensure the generated code loads correctly.
(test/main.test.js is the medium-ish test.) I've effectively done that
already in the strcalc/src/main/frontend tests from
mbland/tomcat-servlet-testing-example. I just need to port some of the
work I did there over here.
@mbland mbland self-assigned this Jan 6, 2024
@mbland mbland merged commit 4400723 into main Jan 6, 2024
3 checks passed
@mbland mbland deleted the pluginimpl-compile-partials-tests branch January 6, 2024 23:22
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.

None yet

1 participant