@@ -25,8 +25,7 @@ pluginTest('should log but not warn if plugin cannot be found in the list', {
25
25
pluginTest ( 'should warn when something precedes this plugin in plugins list' , {
26
26
plugins : [
27
27
{ name : 'other-plugin' } ,
28
- { name : THIS_PLUGIN . name } ,
29
- { name : THIS_PLUGIN . namelessPath }
28
+ { name : THIS_PLUGIN . name }
30
29
] ,
31
30
serverCommands : getTsConfigDiagnostics ,
32
31
check : ( t , { responses } ) => {
@@ -39,8 +38,7 @@ pluginTest('should warn when something precedes this plugin in plugins list', {
39
38
pluginTest ( 'should not warn when this plugin is first in plugins list' , {
40
39
plugins : [
41
40
{ name : THIS_PLUGIN . name } ,
42
- { name : 'other-plugin' } ,
43
- { name : THIS_PLUGIN . namelessPath }
41
+ { name : 'other-plugin' }
44
42
] ,
45
43
serverCommands : getTsConfigDiagnostics ,
46
44
check : ( t , { responses } ) => {
@@ -52,8 +50,7 @@ pluginTest('should not warn when this plugin is first in plugins list', {
52
50
pluginTest ( 'should not warn when found outside the normal plugins list' , {
53
51
plugins : [
54
52
{ name : THIS_PLUGIN . name } ,
55
- { name : 'other-plugin' , config : { plugins : [ { name : THIS_PLUGIN . name } ] } } ,
56
- { name : THIS_PLUGIN . namelessPath }
53
+ { name : 'other-plugin' , config : { plugins : [ { name : THIS_PLUGIN . name } ] } }
57
54
] ,
58
55
serverCommands : getTsConfigDiagnostics ,
59
56
check : ( t , { responses } ) => {
@@ -65,8 +62,7 @@ pluginTest('should not warn when found outside the normal plugins list', {
65
62
pluginTest ( 'should mark error across the whole plugin def object in the source' , {
66
63
plugins : [
67
64
{ name : 'other-plugin' } ,
68
- { name : THIS_PLUGIN . name } ,
69
- { name : THIS_PLUGIN . namelessPath }
65
+ { name : THIS_PLUGIN . name }
70
66
] ,
71
67
serverCommands : getTsConfigDiagnostics ,
72
68
check : ( t , { responses } ) => {
@@ -83,8 +79,7 @@ pluginTest('should mark error across the whole plugin def object in the source',
83
79
pluginTest ( 'should be warning with a sensible message' , {
84
80
plugins : [
85
81
{ name : 'other-plugin' } ,
86
- { name : THIS_PLUGIN . name } ,
87
- { name : THIS_PLUGIN . namelessPath }
82
+ { name : THIS_PLUGIN . name }
88
83
] ,
89
84
serverCommands : getTsConfigDiagnostics ,
90
85
check : ( t , { responses } ) => {
@@ -99,36 +94,7 @@ pluginTest('should be warning with a sensible message', {
99
94
pluginTest ( 'should find the plugin by its package name' , {
100
95
plugins : [
101
96
{ name : 'other-plugin' } ,
102
- { name : THIS_PLUGIN . name } ,
103
- { name : THIS_PLUGIN . namelessPath }
104
- ] ,
105
- serverCommands : getTsConfigDiagnostics ,
106
- check : ( t , { responses } ) => {
107
- t . ok ( responses [ 0 ] . success ) ;
108
- t . equal ( responses [ 0 ] . body . length , 1 ) ;
109
- t . equal ( responses [ 0 ] . body [ 0 ] . code , EXPECTED_ERROR_CODE ) ;
110
- }
111
- } ) ;
112
-
113
- pluginTest ( 'should find the plugin in local paths' , {
114
- plugins : [
115
- { name : 'other-plugin' } ,
116
- { name : path . join ( '..' , THIS_PLUGIN . name ) } ,
117
- { name : THIS_PLUGIN . namelessPath }
118
- ] ,
119
- serverCommands : getTsConfigDiagnostics ,
120
- check : ( t , { responses } ) => {
121
- t . ok ( responses [ 0 ] . success ) ;
122
- t . equal ( responses [ 0 ] . body . length , 1 ) ;
123
- t . equal ( responses [ 0 ] . body [ 0 ] . code , EXPECTED_ERROR_CODE ) ;
124
- }
125
- } ) ;
126
-
127
- pluginTest ( 'should find the plugin when requesting a specific file' , {
128
- plugins : [
129
- { name : 'other-plugin' } ,
130
- { name : path . join ( THIS_PLUGIN . name , 'index.js' ) } ,
131
- { name : THIS_PLUGIN . namelessPath }
97
+ { name : THIS_PLUGIN . name }
132
98
] ,
133
99
serverCommands : getTsConfigDiagnostics ,
134
100
check : ( t , { responses } ) => {
@@ -140,7 +106,6 @@ pluginTest('should find the plugin when requesting a specific file', {
140
106
141
107
pluginTest ( 'should not find the plugin when it appears in another plugin name' , {
142
108
plugins : [
143
- { name : THIS_PLUGIN . namelessPath } ,
144
109
{ name : 'not-vs-compat-ts-plugin' }
145
110
] ,
146
111
serverCommands : getTsConfigDiagnostics ,
@@ -154,7 +119,6 @@ pluginTest('should be ok with the plugin appearing twice if one comes first', {
154
119
plugins : [
155
120
{ name : THIS_PLUGIN . name } ,
156
121
{ name : THIS_PLUGIN . name } ,
157
- { name : THIS_PLUGIN . namelessPath }
158
122
] ,
159
123
serverCommands : getTsConfigDiagnostics ,
160
124
check : ( t , { responses } ) => {
0 commit comments