Skip to content

Conversation

@seatuna
Copy link
Collaborator

@seatuna seatuna commented Apr 10, 2024

Summary

Issue: #1508

This PR adds Playwright for e2e testing, a simple test for the MAPLE homepage, and resolves peer dependency issues related to testing and i18n packages. The following packages were upgraded:

  • jest
  • @types/jest
  • jest-environment-jsdom
  • i18n
  • next-i18next
  • react-i18next

Known issues

Updating jest to v29 introduced an error related to ESM imports for integration tests that touch firebase. To fix this, I had to add a custom resolver per this github thread: microsoft/accessibility-insights-web#5421 (comment)

I don't have firebase set up, so I couldn't check to make sure that the tests are actually passing. I just made sure that it was in the same state as when I ran the tests in the main branch. Someone with firebase set up should absolutely run the integration tests to make sure they're behaving as expected.

@vercel
Copy link

vercel bot commented Apr 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maple-dev ❌ Failed (Inspect) Apr 30, 2024 7:53pm

Comment on lines 10 to 14
constructor({ globalConfig, projectConfig }: ConfigTypes, context: any) {
super({ ...globalConfig,
projectConfig: {
...projectConfig,
globals: Object.assign({}, projectConfig.globals, {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Jest v28 introduced a breaking change to the config object: https://jest-archive-august-2023.netlify.app/docs/28.x/upgrading-to-jest28/#test-environment

@seatuna
Copy link
Collaborator Author

seatuna commented May 6, 2024

Closing this PR, I redid it here: #1554

@seatuna seatuna closed this May 6, 2024
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.

1 participant