comparedir-test
v1.2.0
Published
*compare dir in jest*
Downloads
4
Readme
comparedir-test
compare dir in jest
usage
pnpm i comparedir-testcompare files count
const fixtures = (type) => [
path.resolve(__dirname, './fixtures', type, 'a'),
path.resolve(__dirname, './fixtures', type, 'b'),
]
it('file content not match should return false', async () => {
await compare(...fixtures('files-content-not-match'), {})
})
▲ files-count
compare files content
const fixtures = (type) => [
path.resolve(__dirname, './fixtures', type, 'a'),
path.resolve(__dirname, './fixtures', type, 'b'),
]
it('file content&count match should return true', async () => {
await compare(...fixtures('basic'), {})
})
▲ files-content
