Skip to content

Commit a563644

Browse files
chore(deps): update dependency vitest to v2 (#2057)
* chore(deps): update dependency vitest to v2 * fix * aa --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent c5a9411 commit a563644

File tree

4 files changed

+176
-204
lines changed

4 files changed

+176
-204
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"tsx": "4.15.7",
5050
"turbo": "^2.0.9",
5151
"typescript": "5.5.4",
52-
"vitest": "0.34.6"
52+
"vitest": "2.0.4"
5353
},
5454
"pnpm": {
5555
"patchedDependencies": {

packages/plugin/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
"@types/json-schema": "7.0.15",
6262
"@types/lodash.lowercase": "4.3.9",
6363
"graphql": "16.9.0",
64-
"json-schema-to-ts": "2.12.0"
64+
"json-schema-to-ts": "2.12.0",
65+
"vite-tsconfig-paths": "^4.3.2"
6566
},
6667
"publishConfig": {
6768
"directory": "dist",

packages/plugin/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import path from 'node:path';
2+
import tsconfigPaths from 'vite-tsconfig-paths';
23
// @ts-expect-error -- add `"type": "module"` to `package.json` to fix this
34
import { defineConfig } from 'vitest/config';
45

@@ -11,7 +12,6 @@ export default defineConfig({
1112
testPath.replace('__tests__/', '__tests__/__snapshots__/').replace(/\.ts$/, '.md'),
1213
setupFiles: ['./serializer.ts'],
1314
alias: {
14-
'@graphql-eslint/eslint-plugin': 'src/index.ts',
1515
// fixes Duplicate "graphql" modules cannot be used at the same time since different
1616
'graphql/validation/index.js': path.join(GRAPHQL_PATH, 'validation', 'index.js'),
1717
'graphql/validation/validate.js': path.join(GRAPHQL_PATH, 'validation', 'validate.js'),
@@ -23,4 +23,5 @@ export default defineConfig({
2323
graphql: path.join(GRAPHQL_PATH, 'index.js'),
2424
},
2525
},
26+
plugins: [tsconfigPaths()],
2627
});

0 commit comments

Comments
 (0)