-
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.
test: enable suppressTypeErrors on all integration tests (#1549)
## PR Checklist - [x] Addresses an existing open issue: fixes #1548 - [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 Enables `suppressTypeErrors` on all integration tests to track potential type errors on generated code. Also, makes sure that we do not add absolute module path to the ts ignore comment as it would be different when run on different machines.
- Loading branch information
1 parent
a669242
commit aa1d480
Showing
98 changed files
with
3,940 additions
and
3,445 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
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 |
---|---|---|
@@ -1,81 +1,167 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Cleanups > suppressTypeErrors > options 1`] = ` | ||
"{ | ||
"cleanups": { | ||
"suppressTypeErrors": true | ||
}, | ||
"compilerOptions": { | ||
exports[`Cleanups > non-TypeErrors > options 1`] = ` | ||
"[ | ||
{ | ||
"cleanups": { | ||
"suppressTypeErrors": true | ||
}, | ||
"compilerOptions": { | ||
"strictNullChecks": true | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
"strictNullChecks": true, | ||
"resolveJsonModule": true | ||
}, | ||
"files": [ | ||
"actual.ts" | ||
], | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
"strictNullChecks": false | ||
}, | ||
"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 | ||
"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 | ||
] | ||
], | ||
[ | ||
"fixNoInferableTypes", | ||
null | ||
"output": {}, | ||
"package": { | ||
"directory": "<rootDir>", | ||
"file": "<rootDir>/package.json" | ||
}, | ||
"postProcess": { | ||
"shell": [] | ||
}, | ||
"projectPath": "<rootDir>/tsconfig.json", | ||
"types": {} | ||
} | ||
]" | ||
`; | ||
|
||
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 | ||
] | ||
], | ||
[ | ||
"fixStrictNonNullAssertions", | ||
null | ||
] | ||
], | ||
"output": {}, | ||
"package": { | ||
"directory": "<rootDir>", | ||
"file": "<rootDir>/package.json" | ||
}, | ||
"postProcess": { | ||
"shell": [] | ||
}, | ||
"projectPath": "<rootDir>/tsconfig.json", | ||
"types": {} | ||
}" | ||
"output": {}, | ||
"package": { | ||
"directory": "<rootDir>", | ||
"file": "<rootDir>/package.json" | ||
}, | ||
"postProcess": { | ||
"shell": [] | ||
}, | ||
"projectPath": "<rootDir>/tsconfig.json", | ||
"types": {} | ||
} | ||
]" | ||
`; |
Oops, something went wrong.