1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Files
docs/tests/content/gitignore.js
Kevin Heis 8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00

12 lines
358 B
JavaScript

import fs from 'fs'
import path from 'path'
const gitignorePath = path.join(process.cwd(), '.gitignore')
const gitignore = fs.readFileSync(gitignorePath, 'utf8')
const entries = gitignore.split(/\r?\n/)
describe('.gitignore file', () => {
test('includes an entry for .env', () => {
expect(entries.some((entry) => entry === '.env')).toBe(true)
})
})