chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { Template } from '../../../src'
|
||||
import { buildTemplateTest } from '../../setup'
|
||||
|
||||
buildTemplateTest('make symlink', async ({ buildTemplate }) => {
|
||||
const template = Template()
|
||||
.fromImage('ubuntu:22.04')
|
||||
.skipCache()
|
||||
.makeSymlink('.bashrc', '.bashrc.local')
|
||||
.runCmd('test "$(readlink .bashrc.local)" = ".bashrc"')
|
||||
|
||||
await buildTemplate(template)
|
||||
})
|
||||
|
||||
buildTemplateTest('make symlink (force)', async ({ buildTemplate }) => {
|
||||
const template = Template()
|
||||
.fromImage('ubuntu:22.04')
|
||||
.makeSymlink('.bashrc', '.bashrc.local')
|
||||
.skipCache()
|
||||
.makeSymlink('.bashrc', '.bashrc.local', { force: true }) // Overwrite existing symlink
|
||||
.runCmd('test "$(readlink .bashrc.local)" = ".bashrc"')
|
||||
|
||||
await buildTemplate(template)
|
||||
})
|
||||
Reference in New Issue
Block a user