1.2.0 • Published 3 years ago
comparedir-test v1.2.0
comparedir-test
compare dir in jest
usage
pnpm i comparedir-test
compare 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
1.2.0
3 years ago
1.1.0
3 years ago
1.0.2
3 years ago
0.0.0-beta-2021917123035
3 years ago
0.0.0-beta-2021917135624
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago