-
Notifications
You must be signed in to change notification settings - Fork 13
build(next): Simplify test setup #112
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
Conversation
@@ -7,6 +7,7 @@ | |||
"forceConsistentCasingInFileNames": true, | |||
"skipLibCheck": true | |||
}, | |||
"include": ["src"], | |||
"exclude": ["node_modules", "dist"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal is intentional. The naming may be intuitive, but "exclude" only has impact over "include". In other words, we don't need to "exclude" the paths that are not in "include" at all.
babel.config.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure (pun intended) that we have different prettier settings since if I just save this file, it brings back the multi line format 😂
next/README.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this
@@ -0,0 +1 @@ | |||
22.13.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to keep this @dragidavid ? It's a really long story, but usually I'd suggest to just have one reference, to reduce the risk of out-of-sync in the future 🤔
Not big enough to be a change request though. Could be convenient for folks with NVM, which at the moment is Remote's default setup.
* tests(next): add packages * tests(next): implement absolute path * tests(next): reuse existing tests but with different imports * build(next): Simplify test setup (#112) * Fix * Update jest.config.js * Update babel.config.js * chore: add default node version --------- Co-authored-by: David Dragovacz <david.dragovacz@remote.com> * chore: add node version to readme * chore: apply changes based on review --------- Co-authored-by: thien-remote <159022487+thien-remote@users.noreply.github.com>
* Fix * Update jest.config.js * Update babel.config.js * chore: add default node version --------- Co-authored-by: David Dragovacz <david.dragovacz@remote.com>
* Fix * Update jest.config.js * Update babel.config.js * chore: add default node version --------- Co-authored-by: David Dragovacz <david.dragovacz@remote.com>
* tests(next): reuse existing tests but with different imports * build(next): Simplify test setup (#112) * Fix * Update jest.config.js * Update babel.config.js * chore: add default node version --------- Co-authored-by: David Dragovacz <david.dragovacz@remote.com> * chore: apply changes based on review * build(next): add release script based on existing ones * build(next): add release:next scripts * chore: make changes based on review * build(next): adjust release script * Release next 1.0.0-alpha.1 * build(next): change release script - includes separate `dev` and `beta` versions - `dev` will work the same way as the main `dev` script that we have where we append the version with the timestamp - `beta` will increment the version in the `/next/package.json` file * build(next): add new scripts * build(next): do not update package.json with dev versions * build(next): adjust script to always use the current version * Release v1-beta 1.0.0-beta.1 * build(next): add `files` to package.json * build(next): correct main entry * Release v1-beta 1.0.0-beta.2 * build(next): release rules prevents the `dev` release when on `main` branch only allows a `beta` release when on `main` branch and local branch up to date * build(next): simplify `bumpVersion` * build(next): generate changelog for beta releases * fix: versioning bug * build(next): check dev version restriction - this checks the version in the `next` package before merging and fails if it is anything other than `beta` - this commit should make the build fail since I'm checking if it is `beta` (for testing purposes) * build(next): correcting version check * chore: reset version --------- Co-authored-by: thien-remote <159022487+thien-remote@users.noreply.github.com>
This PR simplifies the test setup in #111, as per @thien-remote 's first review. It is intentionally extracted as another PR to avoid invalidating the review. It should also make it easier to follow.