forked from vuejs/test-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TSD has weird regressions with vue-next 3.0.9, maybe due to TS 4.2. Instead of figthing it, let's adopt what the other Vue project did and replace TSD with a plain `tsc` check. See vuejs/core@97dedeb for example for a similar commit on vue-next
- Loading branch information
Showing
9 changed files
with
63 additions
and
546 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,17 @@ | ||
// This directory contains a number of d.ts assertions using tsd: | ||
// https://github.com/SamVerschueren/tsd | ||
// The tests checks type errors and will probably show up red in VSCode, and | ||
// it's intended. We cannot use directives like @ts-ignore or @ts-nocheck since | ||
// that would suppress the errors that should be caught. | ||
|
||
export function describe(_name: string, _fn: () => void): void | ||
|
||
export function expectType<T>(value: T): void | ||
export function expectError<T>(value: T): void | ||
export function expectAssignable<T, T2 extends T = T>(value: T2): void | ||
|
||
export type IsUnion<T, U extends T = T> = (T extends any | ||
? (U extends T ? false : true) | ||
: never) extends false | ||
? false | ||
: 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
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,16 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"noEmit": false, | ||
"skipLibCheck": true, | ||
"experimentalDecorators": true, | ||
"strictNullChecks": false | ||
}, | ||
"exclude": [ | ||
"../src", | ||
], | ||
"include": [ | ||
"../dist", | ||
"../test-dts" | ||
] | ||
} |
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
Oops, something went wrong.