Fix failing tests with cross-env#639
Merged
mcollina merged 4 commits intofastify:masterfrom Jul 18, 2023
Merged
Conversation
b1e7462 to
81c0c13
Compare
4 tasks
4 tasks
bcomnes
commented
Jul 14, 2023
package.json
Outdated
| "unit:templates-without-ts-esm": "tap \"templates/app/**/*.test.js\" \"templates/app-esm/**/*.test.js\" \"templates/app-ts/**/*.test.ts\" --no-coverage --timeout 200", | ||
| "unit:template-ts-esm": " cross-env TS_NODE_PROJECT=./templates/app-ts-esm/tsconfig.json tap templates/app-ts-esm/test/**/*.test.ts --no-coverage --node-arg=--loader=ts-node/esm --timeout 100 --color -R specy", | ||
| "unit:cli": "tap \"test/**/*.test.{js,ts}\" --no-coverage --jobs=1 --timeout 400 --color -R specy", | ||
| "unit:templates-without-ts-esm": "tap \"templates/app/**/*.test.js\" \"templates/app-esm/**/*.test.js\" \"templates/app-ts/**/*.test.ts\" --no-coverage --timeout 200 --color -R specy", |
Contributor
Author
There was a problem hiding this comment.
Make the test output in CI much more readable and useful.
bcomnes
commented
Jul 14, 2023
package.json
Outdated
| "unit:template-ts-esm": "TS_NODE_PROJECT=./templates/app-ts-esm/tsconfig.json tap templates/app-ts-esm/test/**/*.test.ts --no-coverage --node-arg=--loader=ts-node/esm --timeout 100", | ||
| "unit:cli": "tap \"test/**/*.test.{js,ts}\" --no-coverage --timeout 200", | ||
| "unit:templates-without-ts-esm": "tap \"templates/app/**/*.test.js\" \"templates/app-esm/**/*.test.js\" \"templates/app-ts/**/*.test.ts\" --no-coverage --timeout 200", | ||
| "unit:template-ts-esm": " cross-env TS_NODE_PROJECT=./templates/app-ts-esm/tsconfig.json tap templates/app-ts-esm/test/**/*.test.ts --no-coverage --node-arg=--loader=ts-node/esm --timeout 100 --color -R specy", |
Contributor
Author
There was a problem hiding this comment.
Tests were failing when an ENV var went into the test cycle, which doesn't work on windows.
bcomnes
commented
Jul 14, 2023
bcomnes
commented
Jul 14, 2023
| }) | ||
|
|
||
| test('should start the server with watch options that the child process restart when directory changed', { skip: process.platform === 'win32' }, async (t) => { | ||
| test('should start the server with watch options that the child process restart when directory changed', { skip: process.platform === 'win32' || (process.platform === 'darwin' && ['v20', 'v19', 'v18'].some(v => process.version.startsWith(v))) }, async (t) => { |
Contributor
Author
There was a problem hiding this comment.
We skip this on windows. Can we skip on macos?
Member
There was a problem hiding this comment.
I would prefer not to tbh, but I don't have good arguments for it.
Contributor
Author
There was a problem hiding this comment.
I'll spend some time to try and debug. I don't understand what causes failure here tbh
Contributor
Author
|
Ill revisit the skipped tests. My impression is that they are tightly coupled to platform/runtime assumptions and maybe its fair to skip where those assumptions differ. |
renovate bot
referenced
this pull request
in specfy/specfy
Aug 13, 2023
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [fastify-cli](https://togithub.com/fastify/fastify-cli) | [`5.7.1` -> `5.8.0`](https://renovatebot.com/diffs/npm/fastify-cli/5.7.1/5.8.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>fastify/fastify-cli (fastify-cli)</summary> ### [`v5.8.0`](https://togithub.com/fastify/fastify-cli/releases/tag/v5.8.0) [Compare Source](https://togithub.com/fastify/fastify-cli/compare/v5.7.1...v5.8.0) ##### What's Changed - fix: Correct wrong instructions for typescript ejecting by [@​anyonecancode](https://togithub.com/anyonecancode) in [https://github.com/fastify/fastify-cli/pull/589](https://togithub.com/fastify/fastify-cli/pull/589) - Improve the Typescript template. by [@​meotimdihia](https://togithub.com/meotimdihia) in [https://github.com/fastify/fastify-cli/pull/592](https://togithub.com/fastify/fastify-cli/pull/592) - chore(.gitignore): add bun lockfile by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify-cli/pull/594](https://togithub.com/fastify/fastify-cli/pull/594) - feat: add support for typescript and esm generation ([#​577](https://togithub.com/fastify/fastify-cli/issues/577)) by [@​S-Abhishek](https://togithub.com/S-Abhishek) in [https://github.com/fastify/fastify-cli/pull/585](https://togithub.com/fastify/fastify-cli/pull/585) - fix: use dot notation by [@​is2ei](https://togithub.com/is2ei) in [https://github.com/fastify/fastify-cli/pull/634](https://togithub.com/fastify/fastify-cli/pull/634) - Fix failing tests with cross-env by [@​bcomnes](https://togithub.com/bcomnes) in [https://github.com/fastify/fastify-cli/pull/639](https://togithub.com/fastify/fastify-cli/pull/639) - print-routes options and print-plugins by [@​bcomnes](https://togithub.com/bcomnes) in [https://github.com/fastify/fastify-cli/pull/637](https://togithub.com/fastify/fastify-cli/pull/637) - chore(deps): bump pino-pretty from 9.4.1 to 10.1.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-cli/pull/645](https://togithub.com/fastify/fastify-cli/pull/645) - chore(deps-dev): bump [@​types/node](https://togithub.com/types/node) from 18.17.0 to 20.4.4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify-cli/pull/646](https://togithub.com/fastify/fastify-cli/pull/646) - fix error on undefined plugin by [@​dancastillo](https://togithub.com/dancastillo) in [https://github.com/fastify/fastify-cli/pull/649](https://togithub.com/fastify/fastify-cli/pull/649) ##### New Contributors - [@​anyonecancode](https://togithub.com/anyonecancode) made their first contribution in [https://github.com/fastify/fastify-cli/pull/589](https://togithub.com/fastify/fastify-cli/pull/589) - [@​S-Abhishek](https://togithub.com/S-Abhishek) made their first contribution in [https://github.com/fastify/fastify-cli/pull/585](https://togithub.com/fastify/fastify-cli/pull/585) - [@​is2ei](https://togithub.com/is2ei) made their first contribution in [https://github.com/fastify/fastify-cli/pull/634](https://togithub.com/fastify/fastify-cli/pull/634) - [@​dancastillo](https://togithub.com/dancastillo) made their first contribution in [https://github.com/fastify/fastify-cli/pull/649](https://togithub.com/fastify/fastify-cli/pull/649) **Full Changelog**: fastify/fastify-cli@v5.7.1...v5.8.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/specfy/specfy). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40MC4zIiwidXBkYXRlZEluVmVyIjoiMzYuNDAuMyIsInRhcmdldEJyYW5jaCI6ImNob3JlL3Jlbm92YXRlQmFzZUJyYW5jaCJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trying to fix CI