diff --git a/tests/commands/sites/update.test.ts b/tests/commands/sites/update.test.ts index e38414d3..40e18b77 100644 --- a/tests/commands/sites/update.test.ts +++ b/tests/commands/sites/update.test.ts @@ -16,9 +16,12 @@ beforeEach(() => { }) it('can update SITES.md', () => { - const stdout = execSync('DOT_SITES_DIR=tests/__data__/output/.sites npm run sites:update', { - encoding: 'utf8' - }) + execSync( + 'DOT_SITES_DIR=tests/__data__/output/.sites SITES_DIR=tests/__data__/input/sites-update/sites npm run sites:update', + { + encoding: 'utf8' + } + ) expect(content('tests/__data__/output/sites.md')).toEqual( content('tests/__data__/expected/_sites.md')