-
Notifications
You must be signed in to change notification settings - Fork 522
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
feat(cypress): add cypress_web_test rule and @bazel/cypress package #1930
Conversation
c78ee84
to
a8784b2
Compare
0d05d8c
to
eed4a00
Compare
28fa367
to
c2287c7
Compare
@alexeagle @gregmagolan time for a review! :D |
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.
should have a codeowners change too, so you can review changes here
], | ||
) | ||
|
||
ts_library( |
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.
any particular reason you chose ts_library rather than ts_project? I expect most users will prefer the latter since it's compatible with their existing code
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 reason I opted for ts_library was to test that I consumed the ts_library providers correctly. Maybe I should use both a ts_library and ts_project? What do you think?
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.
we shouldn't have a difference between providers, such that you can tell whether ts_project or ts_library was used to compile your dependency. Could you file an issue with the details about what's different? I hope you don't still need the "typescript" provider
@@ -0,0 +1,6 @@ | |||
describe('world', () => { |
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.
why is there a .ts and .js file both checked in? I suspect this one doesn't belong
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.
I did so to show how to load a .js
file as a test and as a .ts
file as a test respectively
308f9de
to
c5f806b
Compare
7381a43
to
4872e4d
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.
Yay I think this looks great. I don't totally follow all the details how how cypress installs as a workspace but I trust that you'll be around to help if we need it :)
], | ||
) | ||
|
||
ts_library( |
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.
we shouldn't have a difference between providers, such that you can tell whether ts_project or ts_library was used to compile your dependency. Could you file an issue with the details about what's different? I hope you don't still need the "typescript" provider
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Add @bazel/cypress for integrating cypress testing framework with bazel
Left todo:
Show how to launch a nodejs_binary server from cypress plugin