File tree Expand file tree Collapse file tree 3 files changed +16
-21
lines changed
Expand file tree Collapse file tree 3 files changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ test.each([
2121] as const ) ( "%s with `type: '%s'`" , async ( project , moduleType ) => {
2222 await writeFile (
2323 resolveRelativeToSampleWorkspace ( `configFileTypes/${ project } /package.json` ) ,
24- JSON . stringify (
24+ ` ${ JSON . stringify (
2525 {
2626 name : "test" ,
2727 type : moduleType ,
2828 } ,
2929 undefined ,
3030 2 ,
31- ) ,
31+ ) } \n` ,
3232 "utf-8" ,
3333 ) ;
3434 await reloadService ( ) ;
Original file line number Diff line number Diff line change 1- import { test as origTest } from "@jest/globals" ;
21import { TextEditor } from "vscode" ;
32import {
43 closeAllEditors ,
@@ -11,12 +10,6 @@ import {
1110 getDefinitions ,
1211} from "./utils" ;
1312
14- let test = origTest . skip ;
15- if ( process . platform === "win32" ) {
16- console . info ( "Skipping rover E2E tests in Windows" ) ;
17- test = origTest . skip ;
18- }
19-
2013let editor : TextEditor ;
2114let getPosition : GetPositionFn ;
2215beforeAll ( async ( ) => {
@@ -47,19 +40,19 @@ test("completion", async () => {
4740 "label": "@authenticated",
4841 },
4942 {
50- "detail": undefined ,
43+ "detail": "" ,
5144 "label": "@deprecated",
5245 },
5346 {
54- "detail": undefined ,
47+ "detail": "" ,
5548 "label": "@external",
5649 },
5750 {
5851 "detail": undefined,
5952 "label": "@inaccessible",
6053 },
6154 {
62- "detail": undefined ,
55+ "detail": "" ,
6356 "label": "@override(…)",
6457 },
6558 {
@@ -71,39 +64,39 @@ test("completion", async () => {
7164 "label": "@provides(…)",
7265 },
7366 {
74- "detail": undefined ,
67+ "detail": "" ,
7568 "label": "@requires(…)",
7669 },
7770 {
7871 "detail": undefined,
7972 "label": "@requiresScopes(…)",
8073 },
8174 {
82- "detail": undefined ,
75+ "detail": "" ,
8376 "label": "@shareable",
8477 },
8578 {
8679 "detail": undefined,
8780 "label": "@tag(…)",
8881 },
8982 {
90- "detail": undefined ,
83+ "detail": "" ,
9184 "label": "@federation__authenticated",
9285 },
9386 {
94- "detail": undefined ,
87+ "detail": "" ,
9588 "label": "@federation__inaccessible",
9689 },
9790 {
98- "detail": undefined ,
91+ "detail": "" ,
9992 "label": "@federation__policy(…)",
10093 },
10194 {
102- "detail": undefined ,
95+ "detail": "" ,
10396 "label": "@federation__provides(…)",
10497 },
10598 {
106- "detail": undefined ,
99+ "detail": "" ,
107100 "label": "@federation__requiresScopes(…)",
108101 },
109102 {
Original file line number Diff line number Diff line change @@ -322,8 +322,10 @@ export abstract class ApolloConfig {
322322 get configDirURI ( ) {
323323 // if the filepath has a _file_ in it, then we get its dir
324324 return this . configURI &&
325- this . configURI . fsPath . match ( / \. ( t s | j s | c j s | m j s | y a m l | y m l | j s o n ) $ / i)
326- ? URI . parse ( dirname ( this . configURI . fsPath ) )
325+ this . configURI . path . match ( / \. ( t s | j s | c j s | m j s | y a m l | y m l | j s o n ) $ / i)
326+ ? URI . from ( this . configURI ) . with ( {
327+ path : dirname ( this . configURI . path ) ,
328+ } )
327329 : this . configURI ;
328330 }
329331
You can’t perform that action at this time.
0 commit comments