Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(ast-spec): finish migrating to vitest #11126

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 2 additions & 6 deletions knip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ export default {
entry: ['tools/release/changelog-renderer.js', 'tools/scripts/**/*.mts'],
ignore: ['tools/scripts/typings/typescript.d.ts', 'typings/*.d.ts'],
ignoreDependencies: [
'@babel/code-frame',
'@babel/core',
'@babel/eslint-parser',
'@babel/parser',
'@babel/types',
'@nx/js',
'@nx/workspace',
'make-dir',
Expand All @@ -41,7 +36,6 @@ export default {
// @typescript-eslint/typescript-estree is not listed in dependencies to avoid circular dependency errors
// You can check a more detailed explanation in this file
'tests/util/parsers/typescript-estree-import.ts',
'typings/global.d.ts',
],

project: ['src/**/*.ts', 'tests/util/**/*.ts', '!src/**/fixtures/**'],
Expand All @@ -51,6 +45,8 @@ export default {
entry: [
'tests/**/*.{bench,test,test-d}.?(c|m)ts?(x)',
'tests/util/setupVitest.mts',
'tests/util/custom-matchers/custom-matchers.ts',
'tests/util/custom-matchers/vitest-custom-matchers.d.ts',
],
},
},
Expand Down
11 changes: 2 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@
"devDependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@babel/code-frame": "^7.24.2",
"@babel/core": "^7.24.4",
"@babel/eslint-parser": "^7.24.1",
"@babel/parser": "^7.24.4",
"@babel/types": "^7.24.0",
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
"@eslint/compat": "^1.2.4",
"@eslint/eslintrc": "^3.2.0",
Expand All @@ -67,8 +62,6 @@
"@nx/vite": "20.7.2",
"@nx/workspace": "20.7.2",
"@swc/core": "^1.4.12",
"@types/babel__code-frame": "^7.0.6",
"@types/babel__core": "^7.20.5",
"@types/debug": "^4.1.12",
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
"@types/natural-compare": "^1.4.3",
Expand All @@ -81,7 +74,7 @@
"@typescript-eslint/types": "workspace:^",
"@typescript-eslint/typescript-estree": "workspace:^",
"@typescript-eslint/utils": "workspace:^",
"@vitest/coverage-v8": "^3.1.2",
"@vitest/coverage-v8": "^3.1.3",
"@vitest/eslint-plugin": "^1.1.44",
"console-fail-test": "^0.5.0",
"cross-fetch": "^4.0.0",
Expand Down Expand Up @@ -113,7 +106,7 @@
"typescript": ">=4.8.4 <5.9.0",
"typescript-eslint": "workspace:^",
"vite": "^6.3.5",
"vitest": "^3.1.2",
"vitest": "^3.1.3",
"yargs": "17.7.2"
},
"resolutions": {
Expand Down
22 changes: 12 additions & 10 deletions packages/ast-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -b tsconfig.build.json && api-extractor run --local",
"clean": "tsc -b tsconfig.build.json --clean",
"postclean": "rimraf dist/ coverage/",
"build": "tsc -b tsconfig.build.json && api-extractor run --local --config=$INIT_CWD/api-extractor.json",
"clean": "rimraf dist/ coverage/",
"clean-fixtures": "rimraf -g \"./src/**/fixtures/**/snapshots\"",
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
"lint": "npx nx lint",
Expand All @@ -45,18 +44,21 @@
"url": "https://opencollective.com/typescript-eslint"
},
"devDependencies": {
"@babel/code-frame": "*",
"@babel/core": "*",
"@babel/eslint-parser": "*",
"@babel/code-frame": "^7.24.2",
"@babel/core": "^7.24.4",
"@babel/eslint-parser": "^7.24.1",
"@microsoft/api-extractor": "^7.47.11",
"@types/babel__code-frame": "^7.0.6",
"@types/babel__core": "^7.20.5",
"@typescript-eslint/typescript-estree": "workspace:*",
"@vitest/coverage-v8": "^3.1.2",
"@vitest/coverage-v8": "^3.1.3",
"@vitest/pretty-format": "^3.1.3",
"@vitest/utils": "^3.1.3",
"eslint": "*",
"glob": "*",
"jest-diff": "^29.7.0",
"prettier": "^3.2.5",
"pretty-format": "*",
"rimraf": "*",
"typescript": "*",
"vitest": "^3.1.2"
"vitest": "^3.1.3"
}
}
Loading