Skip to content

Commit

Permalink
migrate graphql-language-service to vitest (#3831)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina authored Dec 14, 2024
1 parent 93a048d commit 04b7695
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion packages/codemirror-graphql/src/info.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* @flow */
/**
* Copyright (c) 2021 GraphQL Contributors
* All rights reserved.
Expand Down
3 changes: 0 additions & 3 deletions packages/codemirror-graphql/src/jump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*
*/

import CodeMirror from 'codemirror';
Expand Down
1 change: 0 additions & 1 deletion packages/graphql-language-service/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion packages/graphql-language-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"typescript": "^4.6.3"
},
"scripts": {
"benchmark": "ts-node benchmark/index.ts"
"benchmark": "ts-node benchmark/index.ts",
"test": "vitest"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

import fs from 'node:fs';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

import { Hover } from 'vscode-languageserver-types';
Expand Down
7 changes: 7 additions & 0 deletions packages/graphql-language-service/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
globals: true,
},
});

0 comments on commit 04b7695

Please sign in to comment.