Class JestOptions.Jsii$Proxy

  • All Implemented Interfaces:
    JestOptions, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    JestOptions

    @Stability(Experimental)
    @Internal
    public static final class JestOptions.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements JestOptions
    An implementation for JestOptions
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getConfigFilePath

        public final String getConfigFilePath()
        Description copied from interface: JestOptions
        (experimental) Path to JSON config file for Jest.

        Default: - No separate config file, jest settings are stored in package.json

        Specified by:
        getConfigFilePath in interface JestOptions
      • getCoverage

        public final Boolean getCoverage()
        Description copied from interface: JestOptions
        (deprecated) Collect coverage.

        Deprecated

        Default: true

        Specified by:
        getCoverage in interface JestOptions
      • getCoverageText

        public final Boolean getCoverageText()
        Description copied from interface: JestOptions
        (experimental) Include the text coverage reporter, which means that coverage summary is printed at the end of the jest execution.

        Default: true

        Specified by:
        getCoverageText in interface JestOptions
      • getExtraCliOptions

        public final List<String> getExtraCliOptions()
        Description copied from interface: JestOptions
        (experimental) Additional options to pass to the Jest CLI invocation.

        Default: - no extra options

        Specified by:
        getExtraCliOptions in interface JestOptions
      • getIgnorePatterns

        public final List<String> getIgnorePatterns()
        Description copied from interface: JestOptions
        (deprecated) Defines testPathIgnorePatterns and coveragePathIgnorePatterns.

        Default: ["/node_modules/"]

        Specified by:
        getIgnorePatterns in interface JestOptions
      • getJestVersion

        public final String getJestVersion()
        Description copied from interface: JestOptions
        (experimental) The version of jest to use.

        Note that same version is used as version of @types/jest and ts-jest (if Typescript in use), so given version should work also for those.

        Default: - installs the latest jest version

        Specified by:
        getJestVersion in interface JestOptions
      • getJunitReporting

        public final Boolean getJunitReporting()
        Description copied from interface: JestOptions
        (experimental) Result processing with jest-junit.

        Output directory is test-reports/.

        Default: true

        Specified by:
        getJunitReporting in interface JestOptions
      • getPreserveDefaultReporters

        public final Boolean getPreserveDefaultReporters()
        Description copied from interface: JestOptions
        (experimental) Preserve the default Jest reporter when additional reporters are added.

        Default: true

        Specified by:
        getPreserveDefaultReporters in interface JestOptions
      • getUpdateSnapshot

        public final UpdateSnapshot getUpdateSnapshot()
        Description copied from interface: JestOptions
        (experimental) Whether to update snapshots in task "test" (which is executed in task "build" and build workflows), or create a separate task "test:update" for updating snapshots.

        Default: - ALWAYS

        Specified by:
        getUpdateSnapshot in interface JestOptions
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object