Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
chore(eslint-plugin-internal): migrate fromjest
tovitest
#10771
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
06ce4ac
210ba5b
35a0d1d
0375fa8
73057f5
de5857b
1c6819f
bd7d3f3
e595cf8
8edaa18
c3efc9e
21a6b84
139c934
3156655
5191e9b
1e2c8b2
d0b822d
82af72c
9663ca2
362cd3f
c60c84f
641440d
0dc29d0
ab86d18
c607191
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
kirkwaiblinger marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -14,6 +14,28 @@ | ||
"configName": "tsconfig.build.json" | ||
} | ||
} | ||
}, | ||
{ | ||
"plugin": "@nx/vite/plugin", | ||
"include": ["packages/*"], | ||
"options": { | ||
"buildTargetName": "vite:build", | ||
"testTargetName": "test", | ||
"serveTargetName": "serve", | ||
"devTargetName": "dev", | ||
"previewTargetName": "preview", | ||
"serveStaticTargetName": "serve-static", | ||
"typecheckTargetName": "vite:typecheck", | ||
"buildDepsTargetName": "vite:build-deps", | ||
"watchDepsTargetName": "vite:watch-deps" | ||
} | ||
}, | ||
{ | ||
"plugin": "@nx/jest/plugin", | ||
"include": ["packages/*"], | ||
"options": { | ||
"targetName": "test" | ||
} | ||
} | ||
], | ||
"release": { | ||
@@ -40,19 +62,19 @@ | ||
"build": { | ||
"dependsOn": ["^build"], | ||
"inputs": ["production", "^production"], | ||
"outputs": ["{projectRoot}/dist"], | ||
"options": { | ||
"cwd": "{projectRoot}" | ||
}, | ||
"cache": true | ||
}, | ||
"test": { | ||
"dependsOn": ["^build"], | ||
"outputs": ["{projectRoot}/coverage"], | ||
"cache": true | ||
}, | ||
"@nx/jest:jest": { | ||
"dependsOn": ["^build"], | ||
kirkwaiblinger marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
"inputs": [ | ||
"default", | ||
"^production", | ||
@@ -72,7 +94,25 @@ | ||
} | ||
} | ||
}, | ||
"@nx/vite:test": { | ||
"dependsOn": ["^build"], | ||
"inputs": [ | ||
"default", | ||
"^production", | ||
"{workspaceRoot}/vitest.config.mts", | ||
"{workspaceRoot}/vitest.config.base.mts", | ||
"{projectRoot}/vitest.config.mts" | ||
], | ||
"outputs": ["{options.reportsDirectory}"], | ||
"cache": true, | ||
"options": { | ||
"config": "{projectRoot}/vitest.config.mts", | ||
"watch": false, | ||
"reportsDirectory": "{projectRoot}/coverage" | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"dependsOn": [ | ||
"eslint-plugin:build", | ||
"eslint-plugin-internal:build", | ||
@@ -87,6 +127,12 @@ | ||
"transitive": false | ||
} | ||
], | ||
"outputs": ["{options.outputFile}"], | ||
"cache": true | ||
}, | ||
"typecheck": { | ||
"dependsOn": ["types:copy-ast-spec"], | ||
"outputs": ["{workspaceRoot}/dist/out-tsc/{projectRoot}"], | ||
"cache": true | ||
} | ||
}, | ||
@@ -110,6 +156,7 @@ | ||
"!{projectRoot}/**/?(*.)+(test).[jt]s?(x)?(.snap)", | ||
"!{projectRoot}/tsconfig.spec.json", | ||
"!{projectRoot}/jest.config.[jt]s", | ||
"!{projectRoot}/vitest.config.m[jt]s", | ||
"!{projectRoot}/src/test-setup.[jt]s" | ||
] | ||
} | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -15,6 +15,9 @@ | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"typecheck": { | ||
"dependsOn": ["typescript-estree:build"] | ||
kirkwaiblinger marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
} | ||
} | ||
} |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
{ | ||
"name": "eslint-plugin-internal", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "library", | ||
"root": "packages/eslint-plugin-internal", | ||
"sourceRoot": "packages/eslint-plugin-internal/src", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"] | ||
}, | ||
"test": { | ||
"executor": "@nx/vite:test" | ||
} | ||
} | ||
} |
kirkwaiblinger marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as path from 'node:path'; | ||
import { defineProject, mergeConfig } from 'vitest/config'; | ||
import { vitestBaseConfig } from '../../vitest.config.base.mjs'; | ||
import packageJson from './package.json' with { type: 'json' }; | ||
const vitestConfig = mergeConfig( | ||
vitestBaseConfig, | ||
defineProject({ | ||
root: import.meta.dirname, | ||
test: { | ||
dir: path.join(import.meta.dirname, 'tests'), | ||
name: packageJson.name.replace('@typescript-eslint/', ''), | ||
root: import.meta.dirname, | ||
}, | ||
}), | ||
); | ||
export default vitestConfig; |
Uh oh!
There was an error while loading.Please reload this page.