-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add support for running JS Spec Tests in browser context. #1902
Conversation
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.
@nex3 This is still WIP, but it'd be good to have your initial review on the overall approach here, and how the tests and setup files are re-arranged a bit.
.github/workflows/ci.yml
Outdated
# TODO update this to use https://github.com/sass/dart-sass.git | ||
git clone https://github.com/oddbird/dart-sass.git ../dart-sass --depth 1 --branch browser |
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.
Before merging, this should be updated:
# TODO update this to use https://github.com/sass/dart-sass.git | |
git clone https://github.com/oddbird/dart-sass.git ../dart-sass --depth 1 --branch browser | |
git clone https://github.com/sass/dart-sass.git ../dart-sass --depth 1 |
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.
Approach looks good to me!
@nex3 Looking at the remainder of the JS API spec tests, I'd like your feedback on which ones we should be supporting in a browser context. Here are my initial thoughts/questions:
|
Yep, totally ignore these.
We should definitely support these. We want people to be able to use custom functions on the browser.
Yeah, I think we should separate out the ones that test importer/filesystem interactions into a separate file and run the rest on the browser.
We could potentially abstract |
* main: Run specs against the JS API doc typedefs (sass#1904)
…a few in browser for now)
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.
LGTM!
* main: Update workflow names to match the Dart Sass repo (sass#1906)
This comment was marked as resolved.
This comment was marked as resolved.
* main: Build the embedded protocol before running Dart Sass (sass#1908)
This PR is now linked from the Dart Sass PR, so we can use that to verify that the tests are working.
* main: Update command to run js-api-spec tests (sass#1909)
@nex3 Full transparency, I just realized yesterday that Karma is officially deprecated as of a few weeks ago. 🤦 I think there's potential for switching to either Web Test Runner or jasmine-browser-runner, but after trying them out a bit today I ran out of steam. I'd be happy to chat more about pros/cons of those two options, but I think I'd recommend that this is a good start, and we can consider a switch to Web Test Runner sooner or later. |
TODO:
[skip dart-sass]