-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update biome snapshots and clean up manual replacer (#695)
2 cleanups, motivated by nightly: - Generate new release-able snapshot for biome, and update the script to autogen snapshots even if not all the tests are failing (e.g. 1 failure, 2 passes, identical on platforms) - Add some more args for manual version replacer (~for psscriptanalyzer so things can land until their `v1.22.0` asset gets released~)
- Loading branch information
1 parent
ba5ae6c
commit df1b0fa
Showing
6 changed files
with
146 additions
and
10 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
linters/biome/test_data/biome_v1.6.0_basic_check.check.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter biome test basic_check 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "lint/complexity/noUselessLoneBlockStatements", | ||
"column": "3", | ||
"file": "test_data/basic_check.in.ts", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"level": "LEVEL_HIGH", | ||
"line": "13", | ||
"linter": "biome", | ||
"message": "This block statement doesn't serve any purpose and can be safely removed.", | ||
"targetType": "typescript", | ||
}, | ||
{ | ||
"code": "lint/style/useEnumInitializers", | ||
"column": "6", | ||
"file": "test_data/basic_check.in.ts", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"level": "LEVEL_HIGH", | ||
"line": "4", | ||
"linter": "biome", | ||
"message": "This enum declaration contains members that are implicitly initialized.", | ||
"targetType": "typescript", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "fmt", | ||
"fileGroupName": "typescript", | ||
"linter": "biome", | ||
"paths": [ | ||
"test_data/basic_check.in.ts", | ||
], | ||
"verb": "TRUNK_VERB_FMT", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "typescript", | ||
"linter": "biome", | ||
"paths": [ | ||
"test_data/basic_check.in.ts", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "typescript", | ||
"linter": "biome", | ||
"paths": [ | ||
"test_data/basic_check.in.ts", | ||
], | ||
"upstream": true, | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [ | ||
{ | ||
"column": "1", | ||
"file": "test_data/basic_check.in.ts", | ||
"issueClass": "ISSUE_CLASS_UNFORMATTED", | ||
"level": "LEVEL_HIGH", | ||
"line": "1", | ||
"linter": "biome", | ||
"message": "Incorrect formatting, autoformat by running 'trunk fmt'", | ||
}, | ||
], | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing formatter biome test basic_fmt 1`] = ` | ||
"const foobar = () => {}; | ||
const barfoo = () => {}; | ||
|
||
enum Bar { | ||
Baz, | ||
} | ||
|
||
const foo = (bar: Bar) => { | ||
switch (bar) { | ||
case Bar.Baz: | ||
foobar(); | ||
barfoo(); | ||
break; | ||
} | ||
{ | ||
!foo ? null : 1; | ||
} | ||
}; | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing formatter biome test basic_json 1`] = ` | ||
"{ "a": "foo", "b": 1, "a": true } | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters