package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "@d8d/mini-testing-utils",
  3. "version": "1.0.0",
  4. "type": "module",
  5. "description": "Taro小程序测试工具包 - 提供统一的测试工具函数和mock配置",
  6. "main": "src/index.ts",
  7. "types": "src/index.ts",
  8. "exports": {
  9. ".": {
  10. "types": "./dist/src/index.d.ts",
  11. "import": "./dist/src/index.js",
  12. "require": "./dist/src/index.js"
  13. },
  14. "./testing": {
  15. "types": "./dist/testing/index.d.ts",
  16. "import": "./dist/testing/index.js",
  17. "require": "./dist/testing/index.js"
  18. },
  19. "./jest-preset": {
  20. "types": "./dist/jest-preset.d.ts",
  21. "import": "./dist/jest-preset.js",
  22. "require": "./dist/jest-preset.js"
  23. },
  24. "./setup": {
  25. "types": "./dist/setup.d.ts",
  26. "import": "./dist/setup.js",
  27. "require": "./dist/setup.js"
  28. }
  29. },
  30. "scripts": {
  31. "build": "tsc",
  32. "dev": "tsc --watch",
  33. "typecheck": "tsc --noEmit",
  34. "test": "jest",
  35. "test:watch": "jest --watch",
  36. "test:coverage": "jest --coverage"
  37. },
  38. "dependencies": {
  39. "@tarojs/components": "4.1.4",
  40. "@tarojs/taro": "4.1.4",
  41. "react": "^18.0.0",
  42. "react-dom": "^18.0.0"
  43. },
  44. "devDependencies": {
  45. "@testing-library/jest-dom": "^6.8.0",
  46. "@testing-library/react": "^16.3.0",
  47. "@testing-library/user-event": "^14.6.1",
  48. "@types/jest": "^29.5.14",
  49. "@types/node": "^18",
  50. "@types/react": "^18.0.0",
  51. "@types/react-dom": "^18.0.0",
  52. "jest": "^30.2.0",
  53. "jest-environment-jsdom": "^29.7.0",
  54. "ts-jest": "^29.4.5",
  55. "typescript": "^5.4.5"
  56. },
  57. "files": [
  58. "src",
  59. "testing",
  60. "dist"
  61. ],
  62. "keywords": [
  63. "testing",
  64. "jest",
  65. "taro",
  66. "mini",
  67. "test-utils",
  68. "mock"
  69. ],
  70. "author": "D8D Team",
  71. "license": "MIT"
  72. }