How to use the jest-cli.run function in jest-cli

To help you get started, we’ve selected a few jest-cli 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 jsayol / FireSQL / tools / run-tests.ts View on Github external
.then(async (config?: any) => {
    if (config) {
      if (config.type === 'local') {
        require('./tests/emulator');
      } else {
        await jest.run([
          '--verbose',
          '--config',
          resolvePath(__dirname, '../jest.config.js'),
          '--rootDir',
          resolvePath(__dirname, '../')
        ]);
      }
    }
  })
  .catch(() => { /* The promise never rejects */ });