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

fix: simplify file watching expression #6030

Merged
merged 2 commits into from
Oct 2, 2023
Merged

Conversation

eduardoboucas
Copy link
Member

Summary

Follow-up to #6018 addressing a couple of items from the code review.

@eduardoboucas eduardoboucas requested a review from a team as a code owner October 2, 2023 11:41
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

📊 Benchmark results

Comparing with 02965a5

  • Dependency count: 1,367 (no change)
  • Package size: 376 MB (no change)

@@ -548,7 +548,7 @@ export class EdgeFunctionsRegistry {
* @returns {Promise<void>}
*/
async #setupWatcherForDirectory(directory) {
const ignored = [new RegExp(this.#servePath)]
const ignored = [`${this.#servePath}/**`]
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this using unix paths on windows as well, I guess so but just checking.

Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -30,9 +30,9 @@ const routes = [
},
]

describe('edge functions', () => {
describe.skipIf(isWindows)('edge functions', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are they skipped on windows? shouldn't it work there as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

// Skipping tests on Windows because of an issue with the Deno CLI throwing IO
// errors when running in the CI.

Copy link
Collaborator

@lukasholzer lukasholzer left a comment

Choose a reason for hiding this comment

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

All fine 🚢 👍

@eduardoboucas eduardoboucas merged commit 1196f8f into main Oct 2, 2023
65 checks passed
@eduardoboucas eduardoboucas deleted the fix/watcher-ignore branch October 2, 2023 12:03
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.

2 participants