jest-config.d.ts 868 B

12345678910111213141516
  1. import type { Config } from '@jest/types';
  2. import type * as d from '@stencil/core/internal';
  3. /**
  4. * Builds the `argv` to be used when programmatically invoking the Jest CLI
  5. * @param config the Stencil config to use while generating Jest CLI arguments
  6. * @returns the arguments to pass to the Jest CLI, wrapped in an object
  7. */
  8. export declare function buildJestArgv(config: d.ValidatedConfig): Config.Argv;
  9. /**
  10. * Generate a Jest run configuration to be used as a part of the `argv` passed to the Jest CLI when it is invoked
  11. * programmatically
  12. * @param config the Stencil config to use while generating Jest CLI arguments
  13. * @returns the Jest Config to attach to the `argv` argument
  14. */
  15. export declare function buildJestConfig(config: d.ValidatedConfig): string;
  16. export declare function getProjectListFromCLIArgs(config: d.Config, argv: Config.Argv): Config.Path[];