Class TsJestBabelConfig

    • Constructor Detail

      • TsJestBabelConfig

        protected TsJestBabelConfig​(software.amazon.jsii.JsiiObjectRef objRef)
      • TsJestBabelConfig

        protected TsJestBabelConfig​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Method Detail

      • autoDetectConfig

        @Stability(Experimental)
        @NotNull
        public static TsJestBabelConfig autoDetectConfig()
        (experimental) Enables Babel processing.

        ts-jest will try to find an existing Babel configuration and pass it to the babel-jest processor.

      • disabled

        @Stability(Experimental)
        @NotNull
        public static TsJestBabelConfig disabled()
        (experimental) Disables the use of Babel.
      • fromFile

        @Stability(Experimental)
        @NotNull
        public static TsJestBabelConfig fromFile​(@NotNull
                                                 String filePath)
        (experimental) Path to a babelrc file.

        The path should be relative to the current working directory where you start Jest from. You can also use <rootDir> in the path.

        Parameters:
        filePath - This parameter is required.