Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(rule-tester): add support for snapshot testing rules#6994

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
bradzacher wants to merge2 commits intomainfromv6-rule-tester-snapshots

Conversation

bradzacher
Copy link
Member

@bradzacherbradzacher commentedMay 6, 2023
edited
Loading

PR Checklist

Overview

This PR adds support for snapshot testing rules using a custom, framework agnostic snapshot setup.

The snapshot emits two files for each.run call - a markdown file which is the human-readable results of the test, and a binary file which is a compressed json blob containing the machine-readable snapshot information.

I've done a test migration of our codebase here:https://github.com/typescript-eslint/typescript-eslint/tree/v6-rule-tester-snapshots-migrate-codebase

TODO:

  • finalise snapshot format
  • add docs
  • add a version field so we can do breaking changes to the snapshot object format?
  • add tests to validate it works as intended
  • usefilenamify to ensure test names are valid filenames

@bradzacherbradzacher added enhancementNew feature or request DO NOT MERGEPRs which should not be merged yet labelsMay 6, 2023
@typescript-eslint
Copy link
Contributor

Thanks for the PR,@bradzacher!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedMay 6, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commitebc8745
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/6455d2f746082900089aad22
😎 Deploy Previewhttps://deploy-preview-6994--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site settings.

@nx-cloud
Copy link

nx-cloudbot commentedMay 6, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commitebc8745. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


🟥 Failed Commands
nx run-many --target=typecheck --parallel
Node 14 - nx test rule-tester --coverage=false
Node 14 - nx test eslint-plugin --coverage=false
✅ Successfully ran 28 targets

Sent with 💌 fromNxCloud.

@JoshuaKGoldberg
Copy link
Member

Lots of merge conflicts and this is taking up space in the PR queue. I'm going to close this old draft just to keep the queue small.

@Josh-CenaJosh-Cena deleted the v6-rule-tester-snapshots branchMay 31, 2024 18:53
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJun 10, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
DO NOT MERGEPRs which should not be merged yetenhancementNew feature or request
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@bradzacher@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp