should generate a seeder
|
- |
show show help
|
- |
should get user options from the cli
|
- |
should validate given options
|
- |
help command should print the usage guide
|
- |
show show help
|
- |
should get user options from the cli
|
- |
show show help
|
- |
should get user options from the cli
|
- |
should create error
|
- |
should create error with type
|
- |
should create error with payload
|
- |
should create error with inner error
|
- |
Should create a installer instance
|
- |
Should create a installer instance with args
|
- |
Should _initConfig
|
- |
Should _initConfig without customSeederTemplate
|
- |
Should _initMemFs
|
- |
Should install
|
- |
Should getGeneratorConfig
|
- |
Should getGeneratorConfig with customSeederTemplate
|
- |
Should _install and success
|
- |
Should _install and fail
|
- |
Should _install and fail with InstallerError
|
- |
Should _commitMemFsChanges
|
- |
Should _createCustomSeederTemplate and success
|
- |
Should _createCustomSeederTemplate and skip because no custom seeder choosed
|
- |
Should _createCustomSeederTemplate and skip because no the seeder template already exists
|
- |
Should _createCustomSeederTemplate and fail
|
- |
Should _writeUserGeneratorConfigToPackageJson and success
|
- |
Should _writeUserGeneratorConfigToPackageJson and fail
|
- |
Should _createSeedersFolder and success
|
- |
Should _createSeedersFolder and skip
|
- |
Should _createSeedersFolder and fail
|
- |
Should _writeUserConfig and success
|
- |
Should _writeUserConfig and skip
|
- |
Should _writeUserConfig and fail
|
- |
should create error
|
- |
should create error with type
|
- |
should create error with payload
|
- |
should create error with inner error
|
- |
Should create a run-logger instance
|
- |
Should run
|
- |
Should run with args
|
- |
Should _run
|
- |
Should _run and drop database
|
- |
Should _run and fail
|
- |
Should _run and fail with type and payload
|
- |
Should _connectToMongodb
|
- |
Should _connectToMongodb and fail
|
- |
Should _dropDatabase
|
- |
Should _dropDatabase and fail
|
- |
Should _runSeeders
|
- |
Should _runSeeder
|
- |
Should _runSeeder and fail
|
- |
should _loadSelectedSeeders with no args
|
- |
should _loadSelectedSeeders with empty array
|
- |
should _loadSelectedSeeders
|
- |
should create a new instance of SeederGenerator
|
- |
should generate Seeder
|
- |
should init options
|
- |
should init memFs
|
- |
should init name
|
- |
_validateSeederFileNotExists should throw error when seeder file are already exists
|
- |
_validateSeederFileNotExists should not throw error when seeder file are not exists
|
- |
should commit memFs changes
|
- |
should copy seeder template
|
- |
Should create a installer-logger instance
|
- |
Should return observer
|
- |
should get folder name from path
|
- |
should get similar object with the selected keys
|
- |
should validate seeders folder name
|
- |
should validate seeder template path
|
- |
should not throw error if user config exists
|
- |
should throw error if user config not exists
|
- |
should exit with success code
|
- |
should exit with error code when passing error
|
- |
should throw error when trying to create new instance of Seeder
|
- |
should throw error if not implementing run method
|
- |
should throw error when running the base run method
|
- |
async shouldRun method need to return true
|
- |
async beforeRun need to return promise
|
- |
getStats should return empty stats when not providing results args
|
- |
getStats should return stats when providing results args
|
- |
static extend method should create a new class based on the Seeder class with the given methods
|
- |
static extend method should create a new class based on the Seeder class without methods
|
- |
seed method should run seeder if shouldRun returns true
|
- |
seed method should not run seeder if shouldRun returns false
|
- |