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

Migrate css-support to cram tests #454

Merged
merged 19 commits into from
Mar 18, 2024
Merged

Conversation

davesnx
Copy link
Owner

@davesnx davesnx commented Mar 17, 2024

This PR moves all css-support into separate cram tests, making sure it type-checks against styled-ppx.css_native and styled-ppx.emotion_native.

I fixed the issues in this PR as well and added a dune_describe_pp to see the preprocessed output (and keep same behaviour as css-supported.expected)

Copy link

vercel bot commented Mar 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
styled-ppx ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2024 6:13pm

Copy link

github-actions bot commented Mar 18, 2024

New nightly version has been published to the NPM registry: @davesnx/[email protected].
Install it with npm install @davesnx/styled-ppx@nightly or npm install @davesnx/[email protected].

@davesnx davesnx force-pushed the Migrate-css-support-test-to-typesafety branch from 710fb3b to 6546b1f Compare March 18, 2024 18:01
@davesnx davesnx force-pushed the Migrate-css-support-test-to-typesafety branch from 6546b1f to bf0b97a Compare March 18, 2024 18:13
@davesnx davesnx merged commit 2b69b67 into main Mar 18, 2024
4 of 6 checks passed
@davesnx davesnx deleted the Migrate-css-support-test-to-typesafety branch March 18, 2024 18:13
@@ -31,36 +31,36 @@ let error_tests_data =
),
(
"@media $",
Copy link
Contributor

@lubegasimon lubegasimon Mar 18, 2024

Choose a reason for hiding this comment

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

looks like white space is not counted as a character (and in other tests)

Comment on lines +165 to +173
/* let lnum =
switch (Driver.container_lnum_ref^) {
| Some(lnum) => lnum
| None => d.loc.loc_start.pos_lnum
};
let loc_start = {...d.loc.loc_start, pos_lnum: lnum};
let loc_end = {...d.loc.loc_end, pos_lnum: lnum};
let _hack_loc = {...d.loc, loc_start, loc_end}; */

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need this?

@lubegasimon
Copy link
Contributor

Thanks for the refactoring and improvements 👍

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