mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Add "debug" mode to tests
This commit is contained in:
parent
ae7b32b079
commit
c8055f10d6
7 changed files with 31 additions and 27 deletions
|
@ -16,12 +16,13 @@ beforeEach(() => {
|
|||
})
|
||||
|
||||
it('can update SITES.md', () => {
|
||||
execSync(
|
||||
const stdout = execSync(
|
||||
'DOT_SITES_DIR=tests/__data__/output/.sites SITES_DIR=tests/__data__/input/sites-update/sites npm run sites:update',
|
||||
{
|
||||
encoding: 'utf8'
|
||||
}
|
||||
)
|
||||
if (process.env.DEBUG === 'true') console.log(stdout)
|
||||
|
||||
expect(content('tests/__data__/output/sites.md')).toEqual(
|
||||
content('tests/__data__/expected/_sites.md')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue