bug: API routes are built during testing

This issue has been tracked since 2022-11-18.

Please provide the environment you discovered this bug in.

local

Which area/package is the issue in?

Don't know / Other

Description

When running yarn test in the template application, the API routes are built and started. This is not needed during testing.
We can use the process.env['NODE_ENV'] === 'test' || !!process.env['VITEST'] to exclude the plugin during testing

Please provide the exception or error you saw

No response

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No
More Details About Repo
Owner Name analogjs
Repo Name analog
Full Name analogjs/analog
Language TypeScript
Created Date 2022-07-06
Updated Date 2023-03-28
Star Count 885
Watcher Count 18
Fork Count 67
Issue Count 33

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date