@@ -47,7 +47,7 @@ describe('readAll', () => {
|
||||
expect(files['src/a.ts']).toContain('export const a')
|
||||
})
|
||||
|
||||
it('honors .gitignore in a repo (files.followGitignore default on)', async () => {
|
||||
it('shows .gitignored files in a repo (files.followGitignore default off)', async () => {
|
||||
dir = await mkdtemp(join(tmpdir(), 'helder-fs-'))
|
||||
await simpleGit(dir).init()
|
||||
await writeFile(join(dir, '.gitignore'), 'secret.txt\n')
|
||||
@@ -55,7 +55,7 @@ describe('readAll', () => {
|
||||
await writeFile(join(dir, 'keep.txt'), 'ok')
|
||||
const keys = Object.keys(await readAll(dir))
|
||||
expect(keys).toContain('keep.txt')
|
||||
expect(keys).not.toContain('secret.txt')
|
||||
expect(keys).toContain('secret.txt') // gitignore not followed by default → shown
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user