Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Last active Nov 5, 2017
Embed
What would you like to do?
// Inline await to get the the user changed files
const filesToMatch = changedFiles ? await changedFiles() : files;
// Example of a test
test('should run command if glob files matches', async () => {
await modifyFixtures();
const {stdout} = await run(`'["__fixtures__/**"]' 'echo fixtures changed'`);
expect(stdout.trim()).toEqual('fixtures changed');
await restoreFixtures();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment