Skip to content

test: simplify visual tests to not use import.meta #2506

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

Merged
merged 1 commit into from
Sep 11, 2021

Conversation

web-padawan
Copy link
Member

@web-padawan web-padawan commented Sep 10, 2021

Description

Thanks to modernweb-dev/web#1657, there is no need to use import.meta anymore 🎉

Note

Changes are done using the following regular expressions:

Tests without interpolations

RegExp

/`\$\{import\.meta\.url\}_([a-z\-]+)`/

Before

`${import.meta.url}_basic`

After

'basic' 

Tests with interpolations

RegExp

`\$\{import\.meta\.url\}_([a-z\-\{\}\$]+)`

Before

`${import.meta.url}_${dir}-align-left`

After

`${dir}-align-left`

Type of change

  • Tests

@web-padawan web-padawan force-pushed the test/simplify-visual-tests branch from 28bb236 to 626b39b Compare September 10, 2021 16:32
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 22.0.0.alpha4 and is also targeting the upcoming stable 22.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants