-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tests): snapshot mutation options (#1530)
## PR Checklist - [x] Addresses an existing open issue: fixes #1529 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/TypeStat/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/TypeStat/blob/main/.github/CONTRIBUTING.md) were taken 🐕 ## Overview Snapshot options used in integration tests.
- Loading branch information
1 parent
18c00a9
commit edfc365
Showing
30 changed files
with
3,699 additions
and
81 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Cleanups > suppressTypeErrors > options 1`] = ` | ||
"{ | ||
"cleanups": { | ||
"suppressTypeErrors": true | ||
}, | ||
"compilerOptions": { | ||
"compilerOptions": { | ||
"strictNullChecks": true | ||
}, | ||
"files": [ | ||
"actual.ts" | ||
], | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
"strictNullChecks": false | ||
}, | ||
"files": { | ||
"above": "", | ||
"below": "", | ||
"renameExtensions": false | ||
}, | ||
"filters": [], | ||
"fixes": { | ||
"importExtensions": false, | ||
"incompleteTypes": false, | ||
"missingProperties": false, | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
"noInferableTypes": false, | ||
"strictNonNullAssertions": false | ||
}, | ||
"hints": { | ||
"react": { | ||
"propTypes": "whenRequired", | ||
"propTypesOptionality": "asWritten" | ||
} | ||
}, | ||
"mutators": [ | ||
[ | ||
"fixImportExtensions", | ||
null | ||
], | ||
[ | ||
"fixIncompleteTypes", | ||
null | ||
], | ||
[ | ||
"fixMissingProperties", | ||
null | ||
], | ||
[ | ||
"fixNoImplicitAny", | ||
null | ||
], | ||
[ | ||
"fixNoImplicitThis", | ||
null | ||
], | ||
[ | ||
"fixNoInferableTypes", | ||
null | ||
], | ||
[ | ||
"fixStrictNonNullAssertions", | ||
null | ||
] | ||
], | ||
"output": {}, | ||
"package": { | ||
"directory": "<rootDir>", | ||
"file": "<rootDir>/package.json" | ||
}, | ||
"postProcess": { | ||
"shell": [] | ||
}, | ||
"projectPath": "<rootDir>/tsconfig.json", | ||
"types": {} | ||
}" | ||
`; |
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,192 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Custom mutators > empty array > options 1`] = ` | ||
"{ | ||
"cleanups": { | ||
"suppressTypeErrors": false | ||
}, | ||
"compilerOptions": { | ||
"files": [ | ||
"actual.ts" | ||
], | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
"strictNullChecks": false | ||
}, | ||
"files": { | ||
"above": "", | ||
"below": "", | ||
"renameExtensions": false | ||
}, | ||
"filters": [], | ||
"fixes": { | ||
"importExtensions": false, | ||
"incompleteTypes": false, | ||
"missingProperties": false, | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
"noInferableTypes": false, | ||
"strictNonNullAssertions": false | ||
}, | ||
"hints": { | ||
"react": { | ||
"propTypes": "whenRequired", | ||
"propTypesOptionality": "asWritten" | ||
} | ||
}, | ||
"mutators": [ | ||
[ | ||
"fixImportExtensions", | ||
null | ||
], | ||
[ | ||
"fixIncompleteTypes", | ||
null | ||
], | ||
[ | ||
"fixMissingProperties", | ||
null | ||
], | ||
[ | ||
"fixNoImplicitAny", | ||
null | ||
], | ||
[ | ||
"fixNoImplicitThis", | ||
null | ||
], | ||
[ | ||
"fixNoInferableTypes", | ||
null | ||
], | ||
[ | ||
"fixStrictNonNullAssertions", | ||
null | ||
] | ||
], | ||
"output": {}, | ||
"package": { | ||
"directory": "<rootDir>", | ||
"file": "<rootDir>/package.json" | ||
}, | ||
"postProcess": { | ||
"shell": [] | ||
}, | ||
"projectPath": "<rootDir>/tsconfig.json", | ||
"types": {} | ||
}" | ||
`; | ||
|
||
exports[`Custom mutators > one mutator > options 1`] = ` | ||
"{ | ||
"cleanups": { | ||
"suppressTypeErrors": false | ||
}, | ||
"compilerOptions": { | ||
"include": [ | ||
"actual.ts" | ||
], | ||
"compileOnSave": false, | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
"strictNullChecks": false | ||
}, | ||
"files": { | ||
"above": "", | ||
"below": "", | ||
"renameExtensions": false | ||
}, | ||
"filters": [], | ||
"fixes": { | ||
"importExtensions": false, | ||
"incompleteTypes": false, | ||
"missingProperties": false, | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
"noInferableTypes": false, | ||
"strictNonNullAssertions": false | ||
}, | ||
"hints": { | ||
"react": { | ||
"propTypes": "whenRequired", | ||
"propTypesOptionality": "asWritten" | ||
} | ||
}, | ||
"include": [ | ||
"actual.ts" | ||
], | ||
"mutators": [ | ||
[ | ||
"./sampleMutator.cjs", | ||
null | ||
] | ||
], | ||
"output": {}, | ||
"package": { | ||
"directory": "<rootDir>", | ||
"file": "<rootDir>/package.json" | ||
}, | ||
"postProcess": { | ||
"shell": [] | ||
}, | ||
"projectPath": "<rootDir>/tsconfig.json", | ||
"types": {} | ||
}" | ||
`; | ||
|
||
exports[`Custom mutators > two mutators > options 1`] = ` | ||
"{ | ||
"cleanups": { | ||
"suppressTypeErrors": false | ||
}, | ||
"compilerOptions": { | ||
"files": [ | ||
"actual.ts" | ||
], | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
"strictNullChecks": false | ||
}, | ||
"files": { | ||
"above": "", | ||
"below": "", | ||
"renameExtensions": false | ||
}, | ||
"filters": [], | ||
"fixes": { | ||
"importExtensions": false, | ||
"incompleteTypes": false, | ||
"missingProperties": false, | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
"noInferableTypes": false, | ||
"strictNonNullAssertions": false | ||
}, | ||
"hints": { | ||
"react": { | ||
"propTypes": "whenRequired", | ||
"propTypesOptionality": "asWritten" | ||
} | ||
}, | ||
"mutators": [ | ||
[ | ||
"./mutator1.cjs", | ||
null | ||
], | ||
[ | ||
"./mutator2.cjs", | ||
null | ||
] | ||
], | ||
"output": {}, | ||
"package": { | ||
"directory": "<rootDir>", | ||
"file": "<rootDir>/package.json" | ||
}, | ||
"postProcess": { | ||
"shell": [] | ||
}, | ||
"projectPath": "<rootDir>/tsconfig.json", | ||
"types": {} | ||
}" | ||
`; |
Oops, something went wrong.