-
Notifications
You must be signed in to change notification settings - Fork 152
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: broken ci #694
fix: broken ci #694
Conversation
…iable type annotation is 'any' or 'unknown'
…available in Deno 2
…ble-kv options don't work when testing)
…available in Deno 2
…rown error in promised function
@@ -881,6 +881,9 @@ Deno.test("[e2e] GET /account/upgrade", async (test) => { | |||
await createUser(user); | |||
|
|||
await test.step("serves internal server error response if the `STRIPE_PREMIUM_PLAN_PRICE_ID` environment variable is not set", async () => { | |||
// Suppress the error message thrown by the handler | |||
const stubbedError = stub(console, "error"); |
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.
const stubbedError = stub(console, "error"); | |
using stubbedError = stub(console, "error"); |
Removes the need for stubbedError.restore();
below.
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.
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.
Ah. Ignore then :)
@@ -1,4 +1,7 @@ | |||
// Copyright 2023-2024 the Deno authors. All rights reserved. MIT license. | |||
|
|||
/// <reference lib="deno.unstable" /> |
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.
@kt3k shouldn't "unstable": ["kv"]
within deno.json
fix this?
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.
Weirdly it didn't. I see there is --unstable-kv
option provided when running deno task test
, but same problem. I think it could be some deno issue. I have been able to make it work only with the reference ...
comment.
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.
Yeah, this seems like a runtime issue.
PTAL @kt3k |
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.
LGTM. Thanks for fixing!
The CI is broken due to various issues, in this request all issues with CI are solved.
Unfortunately I had to cherry-pick the commit 6c6399b as it was blockage.
The commands
deno task build
deno fmt --check && deno lint && deno task check:license --check && deno task check:types && deno task test
work well on Deno 1.46.3 as well as on 2.0.2
closes #693