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

Added debugger port & dropped support for Flow CLI versions <1.0.0 #220

Merged
merged 2 commits into from
May 15, 2023

Conversation

jribbink
Copy link
Contributor

@jribbink jribbink commented May 12, 2023

Closes #219

Description

There's been a number of changes Flow CLI/emulator recently. Some of these have broken Flow JS Testing (changes to the logging format, addition of the debugger, etc.). This PR adds the debugger port and restricts Flow JS Testing to v1.0.0 of the CLI and above. (since if versions of Flow CLI prior to these changes were used with version of Flow JS Testing, logs wouldn't properly be captured and an unknown flag --debugger-port would be passed to CLI)

I think technically these breaking changes were rolled out around v0.45.4 from what I can see, but v1.0.0 seems like a better number to cutoff at considering that there may be other major changes we are overlooking that were introduced with the advent of v1.0.0


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@jribbink jribbink requested review from a team and MaxStalker as code owners May 12, 2023 20:36
@changeset-bot
Copy link

changeset-bot bot commented May 12, 2023

🦋 Changeset detected

Latest commit: 648b5ff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@onflow/flow-js-testing Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

Dependency Testbed

  • Flow CLI: 1.0.2
  • FCL: ^1.3.2

Release Version

The package containing these changes will be released with version 0.4.0

@github-actions
Copy link
Contributor

github-actions bot commented May 12, 2023

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
92.43% (-0.17% 🔻)
635/687
🟡 Branches
76.59% (-0.24% 🔻)
193/252
🟢 Functions
93.48% (+0.14% 🔼)
129/138
🟢 Lines
92.86% (-0.19% 🔻)
611/658
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢 utils.js
88.1% (-0.48% 🔻)
76% (-2.26% 🔻)
100%
89.19% (-0.81% 🔻)

Test suite run success

111 tests passing in 15 suites.

Report generated by 🧪jest coverage report action from 648b5ff

Copy link
Collaborator

@MaxStalker MaxStalker left a comment

Choose a reason for hiding this comment

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

Looking good! :)

@jribbink jribbink merged commit c16e6a6 into master May 15, 2023
2 checks passed
@jribbink jribbink deleted the jribbink/fix-ports branch May 15, 2023 18:00
@github-actions github-actions bot mentioned this pull request May 15, 2023
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.

Debugger port conflicts with newer versions of CLI
2 participants