Jest - Mock Hardcoded Array

后端 未结 0 1421
走了就别回头了
走了就别回头了 2021-01-29 01:35

I want to mock numbers function that exports list of numbers:

// utils.js
export const numbers = () => [1, 2, 3, 4];
export const letters = () => [\'x\', \'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题