File tree 6 files changed +16
-6
lines changed
packages/graphql-language-service-cli
6 files changed +16
-6
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 24
24
" dist" ,
25
25
" src"
26
26
],
27
+ "scripts" : {
28
+ "test" : " vitest"
29
+ },
27
30
"keywords" : [
28
31
" graphql" ,
29
32
" graphql-language-service" ,
Original file line number Diff line number Diff line change @@ -10,18 +10,18 @@ import main from '../client';
10
10
11
11
describe ( 'process.stderr.write' , ( ) => {
12
12
afterEach ( ( ) => {
13
- jest . restoreAllMocks ( ) ;
13
+ vi . restoreAllMocks ( ) ;
14
14
} ) ;
15
15
16
16
it ( 'is passed information on error of string type' , ( ) => {
17
17
const argv = {
18
18
schemaPath : '...' ,
19
19
text : 'foo' ,
20
20
} ;
21
- const mockStdErrWrite = jest
21
+ const mockStdErrWrite = vi
22
22
. spyOn ( process . stderr , 'write' )
23
23
. mockImplementation ( ) ;
24
- jest . spyOn ( process , 'exit' ) . mockImplementation ( ) ;
24
+ vi . spyOn ( process , 'exit' ) . mockImplementation ( ( ) => { } ) ;
25
25
const undefinedWithNewLine = / ^ u n d e f i n e d \n $ / ;
26
26
27
27
main ( 'autocomplete' , argv ) ;
Original file line number Diff line number Diff line change 8
8
9
9
describe ( 'blinking light demo' , ( ) => {
10
10
it ( 'runs' , ( ) => {
11
- // This is just a place holder for now as all the existing tests have moved
11
+ // This is just a placeholder for now as all the existing tests have moved
12
12
// down into the respective package directories. In the future, this will be
13
13
// the home of the integration tests.
14
14
expect ( true ) . toEqual ( true ) ;
Original file line number Diff line number Diff line change 4
4
"composite" : true ,
5
5
"rootDir" : " ./src" ,
6
6
"outDir" : " ./dist" ,
7
- "target" : " ES2018"
7
+ "target" : " ES2018" ,
8
+ "types" : [" vitest/globals" ]
8
9
},
9
10
"references" : [
10
11
{
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from 'vitest/config' ;
2
+
3
+ export default defineConfig ( {
4
+ test : {
5
+ globals : true ,
6
+ } ,
7
+ } ) ;
You can’t perform that action at this time.
0 commit comments