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

Update snapshots #2485

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Update snapshots #2485

merged 2 commits into from
Oct 21, 2024

Conversation

fregante
Copy link
Collaborator

Following fe4e7bc

package.json Outdated
@@ -22,6 +22,7 @@
"fix": "run-p --continue-on-error fix:*",
"fix:eslint-docs": "eslint-doc-generator",
"fix:js": "npm run lint:js -- --fix",
"fix:snapshots": "ava --update-snapshots",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm also including the snapshots in the fix command, which I thought was enough initially but it did not update the snapshots

@fregante
Copy link
Collaborator Author

@fisker vscode's integration test has been failing for a few days, but the affected haven't changed in years.

https://github.com/microsoft/vscode/blob/main/src/vs/workbench/services/search/test/node/fixtures/examples/NullPoinderException.js#L10

@fisker
Copy link
Collaborator

fisker commented Oct 20, 2024

but the affected haven't changed in years.

I'm not sure how the parser changed, but the typescript parser is super forgiving, it allow many kind of invalid syntax, it's been problem for years in Prettier to handle all unexpected AST, until last year they starts to add extra checks for invalid syntaxes. My PRs

@fisker fisker merged commit 8dec962 into main Oct 21, 2024
31 of 33 checks passed
@fisker fisker deleted the fix-tests branch October 21, 2024 00:01
@fisker
Copy link
Collaborator

fisker commented Oct 21, 2024

Ah, I believe the parser correctly treat it as module now, it enbles strict mode, which also request by me.. typescript-eslint/typescript-eslint#9101

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