gitea源码

testhelper.ts 362B

1234567
  1. // there could be different "testing" concepts, for example: backend's "setting.IsInTesting"
  2. // even if backend is in testing mode, frontend could be complied in production mode
  3. // so this function only checks if the frontend is in unit testing mode (usually from *.test.ts files)
  4. export function isInFrontendUnitTest() {
  5. return process.env.TEST === 'true';
  6. }