package.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. "./setup": {
  20. "types": "./setup.ts",
  21. "import": "./setup.ts",
  22. "require": "./setup.ts"
  23. }
  24. },
  25. "scripts": {
  26. "build": "tsc",
  27. "dev": "tsc --watch",
  28. "typecheck": "tsc --noEmit",
  29. "test": "jest",
  30. "test:watch": "jest --watch",
  31. "test:coverage": "jest --coverage"
  32. },
  33. "dependencies": {
  34. "@tarojs/components": "4.1.4",
  35. "@tarojs/taro": "4.1.4",
  36. "react": "^18.0.0",
  37. "react-dom": "^18.0.0"
  38. },
  39. "devDependencies": {
  40. "@testing-library/jest-dom": "^6.8.0",
  41. "@testing-library/react": "^16.3.0",
  42. "@testing-library/user-event": "^14.6.1",
  43. "@types/jest": "^29.5.14",
  44. "@types/node": "^18",
  45. "@types/react": "^18.0.0",
  46. "@types/react-dom": "^18.0.0",
  47. "jest": "^30.2.0",
  48. "jest-environment-jsdom": "^29.7.0",
  49. "ts-jest": "^29.4.5",
  50. "typescript": "^5.4.5"
  51. },
  52. "files": [
  53. "src",
  54. "testing",
  55. "jest-preset.js",
  56. "jest-preset.cjs",
  57. "jest-preset.ts",
  58. "jest-preset.json",
  59. "setup.ts"
  60. ],
  61. "keywords": [
  62. "testing",
  63. "jest",
  64. "taro",
  65. "mini",
  66. "test-utils",
  67. "mock"
  68. ],
  69. "author": "D8D Team",
  70. "license": "MIT"
  71. }