JS Utils Kit - v0.5.1
    Preparing search index...

    Function isTest

    • Checks if the current environment is testing.

      This is determined by comparing process.env.NODE_ENV with 'test'.

      Returns boolean

      true if NODE_ENV is set to test.

      if (isTest()) {
      mockDatabase();
      }