1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Include other actions-only EA-cloning tests now

This commit is contained in:
James M. Greene
2020-11-17 11:50:18 -06:00
parent 88a889a97f
commit 04dff854c2

View File

@@ -5,23 +5,19 @@ const { GITHUB_ACTIONS, GITHUB_REPOSITORY } = process.env
const runningActionsOnInternalRepo = GITHUB_ACTIONS === 'true' && GITHUB_REPOSITORY === 'github/docs-internal'
const testViaActionsOnly = runningActionsOnInternalRepo ? test : test.skip
//
// TODO test ea-config
//
describe('cloning early-access', () => {
testViaActionsOnly('the content directory exists', async () => {
const eaContentDir = path.join(process.cwd(), 'content/early-access')
expect(fs.existsSync(eaContentDir)).toBe(true)
})
// testViaActionsOnly('the data directory exists', async () => {
// const eaContentDir = path.join(process.cwd(), 'data/early-access')
// expect(fs.existsSync(eaContentDir)).toBe(true)
// })
testViaActionsOnly('the data directory exists', async () => {
const eaContentDir = path.join(process.cwd(), 'data/early-access')
expect(fs.existsSync(eaContentDir)).toBe(true)
})
// testViaActionsOnly('the assets directory exists', async () => {
// const eaContentDir = path.join(process.cwd(), 'assets/early-access')
// expect(fs.existsSync(eaContentDir)).toBe(true)
// })
testViaActionsOnly('the assets/images directory exists', async () => {
const eaContentDir = path.join(process.cwd(), 'assets/images/early-access')
expect(fs.existsSync(eaContentDir)).toBe(true)
})
})