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

Dictionary data tests + write mode #415

Merged
merged 10 commits into from
Dec 22, 2023

Conversation

toasted-nutbread
Copy link

This change refactors and organizes the tests related to dictionary data. anki-note-builder.test.js and translator.test.js have been merged into a single file, as they share the same inputs.

dictionary.test.js has been renamed to dictionary-data-validate.test.js and refactored a bit.

This change also adds a test that writes the output files, which can be used by running npm run test-code-write. This resolves point 2 in this issue and can be used to regenerate the new data in #359. This is currently done by still using vitest infrastructure, since it makes it so we don't have to write more code for instantiating the simulated web context.

@toasted-nutbread toasted-nutbread requested a review from a team as a code owner December 21, 2023 16:34
Copy link

github-actions bot commented Dec 21, 2023

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

@djahandarie djahandarie added this pull request to the merge queue Dec 22, 2023
Merged via the queue into yomidevs:master with commit 11d2b93 Dec 22, 2023
5 checks passed
@djahandarie djahandarie added the kind/meta The issue or PR is meta label Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/meta The issue or PR is meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants