Skip to content

Conversation

@dragidavid
Copy link
Collaborator

@dragidavid dragidavid commented Jan 21, 2025

To follow up on #108 and #110, this PR adds the test script to next. It belongs to the same internal ticket of DEVXP-2530.


  • As discussed, we'll try to reuse the existing tests but in a way that uses the new TS code that we'll be writing.
    • This is done by using moduleNameMapper in the jest.config.mjs file to map the imports to the files in the next folder. This only happens when we run the test script from within the next folder. Otherwise everything is unaffected.
  • Updates README
  • Adds nvmrc and engines so we can make sure everyone uses the correct node version (LTS)

@dragidavid dragidavid self-assigned this Jan 21, 2025
Copy link
Collaborator

@thien-remote thien-remote left a comment

Choose a reason for hiding this comment

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

Thanks @dragidavid this is excellent! Not an approval yet because I want to try simplifying the test build a bit. Will keep you updated

@antoniocapelo antoniocapelo self-requested a review January 22, 2025 07:06
@thien-remote thien-remote changed the title tests(next): Add tests (reuse existing ones) build(next): Add tests (reuse existing ones) Jan 22, 2025
@thien-remote thien-remote changed the title build(next): Add tests (reuse existing ones) build(next): Add test setup Jan 22, 2025
thien-remote and others added 2 commits January 22, 2025 17:34
* Fix

* Update jest.config.js

* Update babel.config.js

* chore: add default node version

---------

Co-authored-by: David Dragovacz <[email protected]>
thien-remote
thien-remote previously approved these changes Jan 22, 2025
@antoniocapelo
Copy link
Collaborator

Approving as my comments are not blockers

antoniocapelo
antoniocapelo previously approved these changes Jan 22, 2025
@dragidavid dragidavid dismissed stale reviews from antoniocapelo and thien-remote via f3e3b79 January 22, 2025 14:49
@thien-remote thien-remote merged commit 8064015 into main Jan 23, 2025
3 checks passed
@thien-remote thien-remote deleted the devxp-2530-tests branch January 23, 2025 06:17
const config = {
roots,
moduleNameMapper,
testPathIgnorePatterns,
Copy link
Collaborator

Choose a reason for hiding this comment

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

praise: This entire PR is very smart, TIL about this for moduleNameMapper 💡 💡 💡

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.

5 participants