Minor changes to the tests

This commit is contained in:
freearhey 2025-01-07 19:24:50 +03:00
parent e1ffd61618
commit 3c858ecca9
6 changed files with 24 additions and 21 deletions

View file

@ -17,7 +17,7 @@ describe('api:generate', () => {
it('can generate guides.json', () => {
const cmd = `${ENV_VAR} npm run api:generate`
const stdout = execSync(cmd, { encoding: 'utf8' })
if (process.env.DEBUG === 'true') console.log(stdout)
if (process.env.DEBUG === 'true') console.log(cmd, stdout)
expect(content('tests/__data__/output/guides.json')).toEqual(
content('tests/__data__/expected/guides.json')