package.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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": "./src/index.ts",
  11. "import": "./src/index.ts",
  12. "require": "./src/index.ts"
  13. },
  14. "./testing": {
  15. "types": "./testing/index.ts",
  16. "import": "./testing/index.ts",
  17. "require": "./testing/index.ts"
  18. },
  19. "./testing/setup": {
  20. "types": "./testing/setup.ts",
  21. "import": "./testing/setup.ts",
  22. "require": "./testing/setup.ts"
  23. },
  24. "./testing/taro-api-mock": {
  25. "types": "./testing/taro-api-mock.ts",
  26. "import": "./testing/taro-api-mock.ts",
  27. "require": "./testing/taro-api-mock.ts"
  28. },
  29. "./testing/taro-api-mock.ts": {
  30. "types": "./testing/taro-api-mock.ts",
  31. "import": "./testing/taro-api-mock.ts",
  32. "require": "./testing/taro-api-mock.ts"
  33. },
  34. "./setup": {
  35. "types": "./setup.ts",
  36. "import": "./setup.ts",
  37. "require": "./setup.ts"
  38. }
  39. },
  40. "scripts": {
  41. "clean": "rimraf dist",
  42. "build": "tsc",
  43. "prebuild": "pnpm run clean",
  44. "dev": "tsc --watch",
  45. "typecheck": "tsc --noEmit",
  46. "test": "jest",
  47. "test:watch": "jest --watch",
  48. "test:coverage": "jest --coverage"
  49. },
  50. "dependencies": {
  51. "@tarojs/components": "4.1.4",
  52. "@tarojs/taro": "4.1.4",
  53. "react": "^18.0.0",
  54. "react-dom": "^18.0.0"
  55. },
  56. "devDependencies": {
  57. "@testing-library/jest-dom": "^6.8.0",
  58. "@testing-library/react": "^16.3.0",
  59. "@testing-library/user-event": "^14.6.1",
  60. "@types/jest": "^29.5.14",
  61. "@types/node": "^18",
  62. "@types/react": "^18.0.0",
  63. "@types/react-dom": "^18.0.0",
  64. "jest": "^30.2.0",
  65. "jest-environment-jsdom": "^29.7.0",
  66. "rimraf": "^6.1.2",
  67. "ts-jest": "^29.4.5",
  68. "typescript": "^5.4.5"
  69. },
  70. "files": [
  71. "src",
  72. "testing",
  73. "jest-preset.js",
  74. "jest-preset.cjs",
  75. "jest-preset.ts",
  76. "jest-preset.json",
  77. "setup.ts"
  78. ],
  79. "keywords": [
  80. "testing",
  81. "jest",
  82. "taro",
  83. "mini",
  84. "test-utils",
  85. "mock"
  86. ],
  87. "author": "D8D Team",
  88. "license": "MIT"
  89. }