Skip to content

Commit 1f3df38

Browse files
committed
test: fix test accidentally relying on CI env
1 parent c22be64 commit 1f3df38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/build/tests/core/tests.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ test('--branch', async (t) => {
287287
})
288288

289289
test('--baseRelDir', async (t) => {
290-
const output = await new Fixture('./fixtures/basereldir').withFlags({ baseRelDir: false }).runWithConfig()
290+
const output = await new Fixture('./fixtures/basereldir')
291+
.withFlags({ baseRelDir: false })
292+
.withEnv({ COMMIT_REF: 'abcdefabcdefabcdefabcdef', CACHED_COMMIT_REF: undefined })
293+
.runWithConfig()
291294
t.snapshot(normalizeOutput(output))
292295
})
293296

0 commit comments

Comments
 (0)