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

test: added test case #17011

Merged
merged 1 commit into from Apr 17, 2023

test: added

50bb0c2
Select commit
Failed to load commit list.
Merged

test: added test case #17011

test: added
50bb0c2
Select commit
Failed to load commit list.
Deleted GitHub App / Copilot for PRs succeeded Apr 17, 2023 in 40s

Analysis complete

Summary

Add a new inSupportScope property to the css-loader options and the use-style.js module to test the @supports feature query and the env() function in CSS modules. Modify the style.module.css file to use the @supports syntax and the env() function.

Walkthrough

  • Add inSupportScope property to css-loader options in css-modules and css-modules-in-node test cases to specify the CSS class name for the @supports rule (link, link)
  • Add @supports rule to style.module.css file to test css-loader compatibility with env() function and feature queries (link)
  • Export inSupportScope class name from use-style.js module to use it in the HTML elements of the test cases (link)

Poem

inSupportScope class
tests @supports and env()
autumn of CSS

Emoji

🆕🎨🧪

Include these descriptions in your pull request description by including the following marker tags:

  • copilot:all: all the content, in one go
  • copilot:summary: a one paragraph summary of the code changes
  • copilot:walkthrough: a step by step walkthrough of the code changes
  • copilot:poem: a poem about the code changes!
  • copilot:emoji: three emoji that capture the changes

Feedback is welcome. Simply add a comment to this PR of the form /copilot feedback [your comments here].

Details

Copilot for PRs is a limited technical preview from GitHub Next.

It's aim is to make it easier to write pull request descriptions by providing automatically generated suggestions based on the code changes.

To find out more go to https://githubnext.com/projects/copilot-for-pull-requests or come and chat with us on Discord

Progress:

File Status Duration
Summary & Walkthrough ✅ Finished 24.9 seconds
test/configCases/css/css-modules-in-node/index.js ✅ Finished 17.8 seconds
test/configCases/css/css-modules/index.js ✅ Finished 17.8 seconds
test/configCases/css/css-modules/style.module.css ✅ Finished 17.8 seconds
test/configCases/css/css-modules/use-style.js ✅ Finished 17.8 seconds