Skip to content

chore(project-service): sync vitest config with latest setup #11237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
9e337a6
chore(`project-service`): sync `vitest` config with latest setup
aryaemami59 May 21, 2025
a30c34b
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 May 27, 2025
62ef763
Merge branch 'chore/project-service-vitest-migration' of https://gith…
aryaemami59 May 29, 2025
6b1946b
revert dependency changes
aryaemami59 May 30, 2025
6945494
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 May 30, 2025
1a2577f
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 Jun 2, 2025
06c0afe
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 Jun 3, 2025
26ac4a0
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 Jun 5, 2025
aaec78f
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 Jun 24, 2025
f3ec61e
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 Jun 25, 2025
769ae44
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 Jun 30, 2025
0a10a14
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 Jul 1, 2025
83a0a2b
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 Jul 1, 2025
06017f0
Merge branch 'main' of https://github.com/typescript-eslint/typescrip…
aryaemami59 Jul 1, 2025
ad3cbe3
Merge branch 'chore/project-service-vitest-migration' of https://gith…
aryaemami59 Jul 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/project-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
"@typescript-eslint/types": "^8.35.1",
"debug": "^4.3.4"
},
"devDependencies": {
"@vitest/coverage-v8": "^3.1.3",
"rimraf": "*",
"typescript": "*",
"vitest": "^3.1.3"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type * as ts from 'typescript/lib/tsserverlibrary';

import { getParsedConfigFileFromTSServer } from '../src/getParsedConfigFileFromTSServer';
import { getParsedConfigFileFromTSServer } from '../src/getParsedConfigFileFromTSServer.js';

const mockGetParsedConfigFile = vi.fn();

Expand Down
12 changes: 2 additions & 10 deletions packages/project-service/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false,
"types": ["node"]
},
"include": ["src/**/*.ts"],
"extends": "../../tsconfig.build.json",
"compilerOptions": {},
"references": [
{
"path": "../tsconfig-utils/tsconfig.build.json"
Expand Down
3 changes: 0 additions & 3 deletions packages/project-service/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
{
"path": "./tsconfig.build.json"
},
{
"path": "./tsconfig.tools.json"
},
{
"path": "./tsconfig.spec.json"
}
Expand Down
6 changes: 1 addition & 5 deletions packages/project-service/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/packages/types/vitest",
"resolveJsonModule": true,
"types": ["vitest/globals", "vitest/importMeta"]
"outDir": "../../dist/packages/project-service"
},
"include": ["vitest.config.mts", "package.json", "tests"],
"exclude": ["**/fixtures/**"],
"references": [
{
"path": "./tsconfig.build.json"
Expand Down
10 changes: 0 additions & 10 deletions packages/project-service/tsconfig.tools.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/project-service/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const vitestConfig = mergeConfig(
test: {
dir: path.join(import.meta.dirname, 'tests'),
name: packageJson.name.replace('@typescript-eslint/', ''),
passWithNoTests: true,
root: import.meta.dirname,
},
}),
Expand Down
6 changes: 6 additions & 0 deletions packages/tsconfig-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
"peerDependencies": {
"typescript": ">=4.8.4 <5.9.0"
},
"devDependencies": {
"@vitest/coverage-v8": "^3.1.3",
"rimraf": "*",
"typescript": "*",
"vitest": "^3.1.3"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
Expand Down
Loading