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

Set up tests #9

Merged
merged 5 commits into from
Aug 1, 2024
Merged

Set up tests #9

merged 5 commits into from
Aug 1, 2024

Conversation

jenseng
Copy link
Contributor

@jenseng jenseng commented Feb 9, 2023

Fixes #1. Also add failing tests for #5, #6, #7, #8, and set up a PR workflow.

Pin jsdom@20.x (SubmitEvent.submitter was added1 in 21.1.0). To test all submitter permutations, we do need a fix2 from 21.0.0. Unfortunately that version is not compatible with jest@29, so we apply the fix using patch-package.

Footnotes

  1. https://github.com/jsdom/jsdom/pull/3481

  2. https://github.com/jsdom/jsdom/pull/3480

@jenseng jenseng changed the title Set up tests, closes #1 Set up tests Feb 9, 2023
Closes idea2app#1. Also add failing tests for other issues, and set up a PR workflow.

Pin `jsdom@20.x` (`SubmitEvent.submitter` was added[^1] in `21.1.0`). To test
all submitter permutations, we do need a fix[^2] from `21.0.0`. Unfortunately
that version is not compatible with `jest@29`, so we apply the fix using
`patch-package`.

[^1]: jsdom/jsdom#3481
[^2]: jsdom/jsdom#3480
Copy link
Member

@TechQuery TechQuery left a comment

Choose a reason for hiding this comment

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

Thanks for your issues & PRs, I learn lots from these works.

.github/workflows/pull-request.yml Outdated Show resolved Hide resolved
jest.config.js Outdated Show resolved Hide resolved
source/__tests__/SubmitEvent.compatibility.test.ts Outdated Show resolved Hide resolved
source/__tests__/SubmitEvent.compatibility.test.ts Outdated Show resolved Hide resolved
source/__tests__/index.test.ts Outdated Show resolved Hide resolved
@TechQuery TechQuery added the feature New feature or request label Apr 22, 2023
@TechQuery TechQuery merged commit 0ba22db into idea2app:main Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit Test based on Jest
2 participants