docs: added support for tests in www workspace (#14415)
* tests for components (WIP) * finished adding tests to components * added tests for providers * add test command to doc tests * fix imports * exclude test files * remove import * add vitest as dev dependency * fix build error * ignore test files from eslint * fix test from docs-ui
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
"lint:content": "turbo run lint:content",
|
||||
"watch": "turbo run watch",
|
||||
"prep": "turbo run prep",
|
||||
"test": "turbo run test -- run",
|
||||
"up:medusa": "yarn workspaces foreach -v --topological-dev --recursive exec yarn up @medusajs/icons @medusajs/ui @medusajs/ui-preset --exact"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -34,14 +35,21 @@
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "^7.25.9",
|
||||
"@eslint/js": "9.13.0",
|
||||
"@testing-library/dom": "^10.4.0",
|
||||
"@testing-library/jest-dom": "^6.6.3",
|
||||
"@testing-library/react": "^16.1.0",
|
||||
"@types/eslint__js": "8.42.3",
|
||||
"@vitejs/plugin-react": "^4.3.4",
|
||||
"eslint-config-next": "15.3.6",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"eslint-config-turbo": "2.2.3",
|
||||
"eslint-plugin-markdown": "5.1.0",
|
||||
"eslint-plugin-prettier": "5.2.1",
|
||||
"eslint-plugin-react": "7.37.2",
|
||||
"typescript-eslint": "8.11.0"
|
||||
"jsdom": "^25.0.1",
|
||||
"typescript-eslint": "8.11.0",
|
||||
"vite-tsconfig-paths": "^5.1.4",
|
||||
"vitest": "^2.1.8"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.17.0"
|
||||
|
||||
Reference in New Issue
Block a user