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

Testing files outside generator directory #152

Open
tiagoporto opened this issue Aug 18, 2020 · 0 comments
Open

Testing files outside generator directory #152

tiagoporto opened this issue Aug 18, 2020 · 0 comments

Comments

@tiagoporto
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant