Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Testing files outside generator directory #152

Description

@tiagoporto

Hello, in my generator I have a folder is going to be generated outside of the current directory. I'm using move action to do that, and works perfectly.

saofile.js

actions() {
    return [
      {
        type: 'add',
        files: '**'
      },
      {
        type: 'move',
        patterns: {
          'external-folder': '../external-folder'
        }
      }
    ]
  }

But when I started writing tests, those files are not in the fileList

const stream = await sao.mock( { generator })
console.log(stream.fileList) // external-folder is ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions