const Mock = require('better-mock/dist/mock.mp.js') Mock.mock('api/test', { data: [{ num: 1 }] })