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

Introduce Jest automated testing into formBuilder #1438

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

lucasnetau
Copy link
Collaborator

Initial commit to bring in dependencies and setup folder structure and GitHub action

@lucasnetau lucasnetau merged commit 7441284 into kevinchappell:master Oct 6, 2023
1 check passed
error: jest.fn(),
getAllResponseHeaders: jest.fn(),
getResponseHeader: jest.fn(),
//load: jest.fn(),
Copy link
Owner

Choose a reason for hiding this comment

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

do we need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So far yes.

The jQuery part sets up jQuery into the global space

Since I am testing the raw .js files rather than the built files I need to configure FB_EN_US to set the language (what webpack normally does)

I needed the xhrMockClass when testing loading of script etc. We can likely adjust in the future but mocking these helps

@github-actions
Copy link

github-actions bot commented Oct 9, 2023

🎉 This PR is included in version 3.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lucasnetau lucasnetau deleted the testing_framework branch October 15, 2023 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants