mirror of
https://github.com/expo/oclif-dev-cli.git
synced 2026-11-14 19:11:12 -10:00
import {expect, test} from '@oclif/test'
import * as fs from 'fs-extra'
const readme = fs.readFileSync('README.md', 'utf8')
describe('readme', () => {
test
.stdout()
.finally(() => fs.writeFile('README.md', readme))
.command(['readme'])
.it('runs readme', () => {
expect(fs.readFileSync('README.md', 'utf8')).to.contain('manifest')
})
test
.stdout()
.finally(() => fs.writeFile('README.md', readme))
.finally(() => fs.remove('docs'))
.command(['readme', '--multi'])
.it('runs readme --multi', () => {
expect(fs.readFileSync('README.md', 'utf8')).to.contain('manifest')
})
})