How to use the egg-mock.env function in egg-mock

To help you get started, we’ve selected a few egg-mock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / beidou / examples / benchmark / benchmark.js View on Github external
const startApp = async () => {
  process.env.NODE_ENV = 'production';
  app ={
    baseDir: __dirname,
    framework: 'beidou',
  await app.ready();
  await app.httpRequest().get('/');