@@ -6,28 +6,7 @@ describe(`vue-tsc`, () => {
6
6
7
7
test ( `TypeScript - Stable` , ( ) => {
8
8
expect (
9
- getTscOutput ( 'stable' ) . sort ( )
10
- ) . toMatchInlineSnapshot ( `
11
- [
12
- "test-workspace/tsc/failureFixtures/#3632/both.vue(3,1): error TS1109: Expression expected.",
13
- "test-workspace/tsc/failureFixtures/#3632/both.vue(7,1): error TS1109: Expression expected.",
14
- "test-workspace/tsc/failureFixtures/#3632/script.vue(3,1): error TS1109: Expression expected.",
15
- "test-workspace/tsc/failureFixtures/#3632/scriptSetup.vue(3,1): error TS1109: Expression expected.",
16
- "test-workspace/tsc/failureFixtures/#5071/withScript.vue(1,19): error TS1005: ';' expected.",
17
- "test-workspace/tsc/failureFixtures/#5071/withoutScript.vue(2,26): error TS1005: ';' expected.",
18
- "test-workspace/tsc/failureFixtures/directives/main.vue(12,2): error TS2578: Unused '@ts-expect-error' directive.",
19
- "test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{} & {} & {}>, { exist: {}; }, {}, {}, {}, {}, {}, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, ... 12 more ..., {}>'.",
20
- "test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{} & {} & {}>, { exist: {}; }, {}, {}, {}, {}, {}, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, ... 12 more ..., {}>'.",
21
- ]
22
- ` ) ;
23
- } ) ;
24
-
25
- const isUpdateEvent = process . env . npm_lifecycle_event === 'test:update' ;
26
- const isGithubActions = ! ! process . env . GITHUB_ACTIONS ;
27
-
28
- test . skipIf ( ! isUpdateEvent && isGithubActions ) ( `TypeScript - Next` , ( ) => {
29
- expect (
30
- getTscOutput ( 'next' ) . sort ( )
9
+ getTscOutput ( ) . sort ( )
31
10
) . toMatchInlineSnapshot ( `
32
11
[
33
12
"test-workspace/tsc/failureFixtures/#3632/both.vue(3,1): error TS1109: Expression expected.",
@@ -44,7 +23,7 @@ describe(`vue-tsc`, () => {
44
23
} ) ;
45
24
} ) ;
46
25
47
- function getTscOutput ( tsVersion : 'stable' | 'next' ) {
26
+ function getTscOutput ( ) {
48
27
const consoleOutput : string [ ] = [ ] ;
49
28
const originalConsoleLog = process . stdout . write ;
50
29
const originalArgv = process . argv ;
@@ -61,7 +40,7 @@ function getTscOutput(tsVersion: 'stable' | 'next') {
61
40
] ;
62
41
try {
63
42
const tscPath = require . resolve (
64
- `typescript- ${ tsVersion } /lib/tsc` ,
43
+ `typescript/lib/tsc` ,
65
44
{ paths : [ path . resolve ( __dirname , '../../../test-workspace' ) ] }
66
45
) ;
67
46
run ( tscPath ) ;
0 commit comments