Testing with Jest a process.env

前端 未结 0 1680
刺人心
刺人心 2020-11-27 16:20

I try to test a small code with Jest:

I have a file who has just this: export const apiUrlBase = process.env.API_URL;

My jest file is:



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