-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add packages/tdesign-vue-next for test (#5021)
* refactor: move test to packages/tdesign-vue-next test * test: remove e2e and cypress test * test: add @tdesign/test * test: test:unit and test:snap * style: @tdesign/test utils type error * chore: remove e2e and cypress test scripts * style: for lint * test: add packages/tdesign-vue-next/test/package.json * test: mv vitest.config.js * test: vitest config * test: scripts * build: add tsconfig.components.json * refactor: add private flag for workspace app * refactor: set vitest.config.js root and reportsDirectory * test: vitest use allowExternal: true * refactor: lint:tsc scripts * test: up snap * refactor: @tdesign/test change to @tdesign/internal-tests * fix(vitest): vscode plugins --------- Co-authored-by: 黎伟杰 <[email protected]>
- Loading branch information
1 parent
f52a8b1
commit f2761ef
Showing
67 changed files
with
3,930 additions
and
4,695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "@tdesign/internal-tests", | ||
"private": true, | ||
"author": "tdesign", | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"name": "tdesign-vue-mono", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -25,23 +26,21 @@ | |
"generate:coverage-badge": "pnpm test:unit-coverage && node script/test/generate-coverage.js", | ||
"build": "cross-env NODE_ENV=production rollup -c script/rollup.config.js && pnpm build:tsc", | ||
"build:tsc": "run-p build:tsc-*", | ||
"build:tsc-es": "tsc --emitDeclarationOnly -d --rootDir packages/components --outDir packages/tdesign-vue-next/es/", | ||
"build:tsc-esm": "tsc --emitDeclarationOnly -d --rootDir packages/components --outDir packages/tdesign-vue-next/esm/", | ||
"build:tsc-lib": "tsc --emitDeclarationOnly -d --rootDir packages/components --outDir packages/tdesign-vue-next/lib/", | ||
"build:tsc-cjs": "tsc --emitDeclarationOnly -d --rootDir packages/components --outDir packages/tdesign-vue-next/cjs/", | ||
"build:tsc-es": "tsc --outDir packages/tdesign-vue-next/es/ -p tsconfig.components.json", | ||
"build:tsc-esm": "tsc --outDir packages/tdesign-vue-next/esm/ -p tsconfig.components.json", | ||
"build:tsc-lib": "tsc --outDir packages/tdesign-vue-next/lib/ -p tsconfig.components.json", | ||
"build:tsc-cjs": "tsc --outDir packages/tdesign-vue-next/cjs/ -p tsconfig.components.json", | ||
"lint:fix": "eslint --ext .vue,.js,.ts,.tsx ./packages --max-warnings 0 --fix --cache", | ||
"lint": "pnpm lint:tsc && eslint --ext .vue,.js,.ts,.tsx ./packages --max-warnings 0 --cache", | ||
"lint:tsc": "tsc --emitDeclarationOnly", | ||
"test": "pnpm test:unit && pnpm test:snap", | ||
"test:unit": "vitest run", | ||
"test:update": "vitest run -u && pnpm test:snap-update", | ||
"test:unit-dev": "vitest ", | ||
"test:unit-gui": "vitest --ui", | ||
"test:unit-coverage": "vitest run --coverage", | ||
"test:snap": "cross-env NODE_ENV=test-snap vitest run ", | ||
"test:snap-update": "cross-env NODE_ENV=test-snap vitest run -u", | ||
"test:e2e": "cypress run --config-file test/cypress/cypress.config.js --component", | ||
"test:e2e-gui": "cypress open --config-file test/cypress/cypress.config.js", | ||
"lint:tsc": "tsc --noEmit", | ||
"test": "pnpm -C packages/tdesign-vue-next/test test", | ||
"test:unit": "pnpm -C packages/tdesign-vue-next/test test:unit", | ||
"test:update": "pnpm -C packages/tdesign-vue-next/test test:update", | ||
"test:unit-dev":"pnpm -C packages/tdesign-vue-next/test test:unit-dev", | ||
"test:unit-gui":"pnpm -C packages/tdesign-vue-next/test test:unit-gui", | ||
"test:unit-coverage":"pnpm -C packages/tdesign-vue-next/test test:unit-coverage", | ||
"test:snap": "pnpm -C packages/tdesign-vue-next/test test:snap", | ||
"test:snap-update":"pnpm -C packages/tdesign-vue-next/test test:snap-update", | ||
"robot": "publish-cli robot-msg", | ||
"prepare": "husky install" | ||
}, | ||
|
@@ -52,6 +51,7 @@ | |
"@popperjs/core": "^2.11.8", | ||
"@tdesign/common-js": "workspace:^", | ||
"@tdesign/common-style": "workspace:^", | ||
"@tdesign/components": "workspace:^", | ||
"@types/sortablejs": "^1.15.1", | ||
"@types/tinycolor2": "^1.4.3", | ||
"@types/validator": "^13.7.17", | ||
|
@@ -83,6 +83,7 @@ | |
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@rollup/plugin-url": "^7.0.0", | ||
"@tdesign/internal-tests": "workspace:^", | ||
"@testing-library/dom": "^8.20.1", | ||
"@types/babel__traverse": "~7.20.6", | ||
"@types/lodash-es": "^4.17.12", | ||
|
@@ -115,7 +116,6 @@ | |
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-vue": "^8.7.1", | ||
"glob": "^7.2.3", | ||
"gray-matter": "^4.0.3", | ||
"husky": "^7.0.4", | ||
"ignore": "^5.2.4", | ||
|
@@ -152,7 +152,6 @@ | |
"vite-plugin-pwa": "^0.12.8", | ||
"vite-plugin-tdoc": "^2.0.4", | ||
"vitest": "^2.1.8", | ||
"vitest-fetch-mock": "^0.1.0", | ||
"vue": "3.3.9", | ||
"vue-router": "^4.2.4", | ||
"workbox-precaching": "^6.6.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "@tdesign/vue-next-test", | ||
"private": true, | ||
"author": "tdesign", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "pnpm test:unit && pnpm test:snap", | ||
"test:unit": "vitest run", | ||
"test:update": "vitest run -u && pnpm test:snap-update", | ||
"test:unit-dev": "vitest", | ||
"test:unit-gui": "vitest --ui", | ||
"test:unit-coverage": "vitest run --coverage", | ||
"test:snap": "cross-env NODE_ENV=test-snap vitest run ", | ||
"test:snap-update": "cross-env NODE_ENV=test-snap vitest run -u" | ||
}, | ||
"devDependencies": { | ||
"@vue/test-utils": "^2.4.1", | ||
"glob": "^11.0.1", | ||
"vitest-fetch-mock": "^0.1.0", | ||
"vue": "3.3.9", | ||
"vue-router": "^4.2.4" | ||
} | ||
} |
Oops, something went wrong.