Class SampleFileOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • sourcePath

        @Stability(Experimental)
        public SampleFileOptions.Builder sourcePath​(String sourcePath)
        Parameters:
        sourcePath - Absolute path to a file to copy the contents from (does not need to be a text file). If your project is Typescript-based and has configured testdir to be a subdirectory of src, sample files should outside of the src directory, otherwise they may not be copied. For example:

                           new SampleFile(this, 'assets/icon.png', { source: path.join(__dirname, '..', 'sample-assets', 'icon.png') });
                           
        Returns:
        this