-
-
Notifications
You must be signed in to change notification settings - Fork 62
test(sourcemaps): Add cloudflare wrangler source maps e2e test #1000
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1000 +/- ##
=======================================
Coverage 27.98% 27.98%
=======================================
Files 130 130
Lines 14233 14233
Branches 882 882
=======================================
Hits 3983 3983
Misses 10233 10233
Partials 17 17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
69ed443
to
555e6b6
Compare
e2e-tests/test-applications/cloudflare-wrangler-sourcemaps-test-app/yarn.lock
Outdated
Show resolved
Hide resolved
import { Integration } from '../../lib/Constants'; | ||
import * as path from 'path'; | ||
import fs from 'fs'; | ||
//@ts-expect-error - clifty is ESM only |
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.
//@ts-expect-error - clifty is ESM only | |
// @ts-expect-error - clifty is ESM only |
but also esm only 😢
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.
Maybe I should just emit CJS as well. Or actually, we probably need to adjust the build/TS config at some point in the wizard because I'm sure there are nicer ways to handle this than the ts-expect-error comment. Since we do this in a bunch of places (with clack), I'll follow up with another PR.
0559287
to
b0ad164
Compare
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 Clifty workflow looks so much cleaner 😮
b822349
to
6fce122
Compare
6fce122
to
b331287
Compare
This PR adds a new e2e test app for the new cloudflare source maps wizard flow (#999). This introduces an (arguable 😅 ) improvement to our e2e test setup:
A couple of weeks ago I started working on a small NPM package called
clifty
to declaratively define a CLI interaction before executing the actual child process. The main goal of this package is to:IMHO this makes our e2e tests better readable compared to the solution we have in other tests and hopefully also less prone to flakes. Let's see if reviewers and CI agree :)
I propose we give the package a try in this e2e test and check for flakes or other weird behaviour. We can convert any of the other tests to this package whenever we want (or not).
#skip-changelog