Skip to content

Conversation

@BPScott
Copy link
Member

@BPScott BPScott commented Aug 17, 2021

WHY are these changes introduced?

sewing-kit was never great for libraries. sewing-kit-next is better.

Eventually I want to use skn for build output (it uses rollup under the hood same as polaris's existing build), but the first step to that is configuring skn for test and linting runs.

WHAT is this pull request doing?

Replace sewing-kit with sewing-kit-next.

Under the hood, we've updated from jest 25 to 27.
We also updated from babel 7.12 to 7.15, and @shopify/babel-plugin now uses the latest version.

This PR ignores a few test cases that trigger circular dependency errors. I figure we can come back to them.

Currently skn does not provide out-the-box config jest transformers for scss and image files, so create them ourselves for now.

How to 🎩

  • See that lint and tests still pass.
  • Check that build output remains the same as before, aside from minor changes relating to @babel/plugin-transform-react-constant-elements inlining components more.
  • Confirm storybook still loads

@BPScott BPScott changed the base branch from main to v7.0.0-release August 17, 2021 01:40
Under the hood, we've updated from jest 25 to 27.
We also update from babel 7.12 to 7.15, and @shopify/babel-plugin now
uses the latest version.

Currently skn does not provide out-the-box config jest transformers
for scss and image files, so create them ourselves for now.
If you dedupe then enzyme gets confused and can't find an element by its
name if it is wrapped in a forwardRef and a memo (it's UnstyledLink that
does this) and then tests start failing
@github-actions
Copy link
Contributor

github-actions bot commented Aug 17, 2021

size-limit report

Path Size
cjs 143.94 KB (+0.03% 🔺)
esm 97.81 KB (-0.05% 🔽)
esnext 143.49 KB (-0.03% 🔽)
css 34.53 KB (0%)

@BPScott BPScott marked this pull request as ready for review August 19, 2021 19:55
@BPScott BPScott requested a review from alex-page August 19, 2021 19:56
Copy link
Member

@alex-page alex-page left a comment

Choose a reason for hiding this comment

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

Awesome work @BPScott

@BPScott BPScott merged commit e54a81e into v7.0.0-release Aug 19, 2021
@BPScott BPScott deleted the skn branch August 19, 2021 21:33
alex-page pushed a commit that referenced this pull request Aug 25, 2021
Under the hood, we've updated from jest 25 to 27.
We also update from babel 7.12 to 7.15, and @shopify/babel-plugin now
uses the latest version.

Currently skn does not provide out-the-box config jest transformers
for scss and image files, so create them ourselves for now.
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