Skip to content

Commit d095853

Browse files
author
test2
committed
Fix initialize tests
1 parent 7f05bed commit d095853

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎test/orchestrator/initialize/initialize.test.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ import path from 'node:path';
88
import { MockReporter } from '../mocks/reporter';
99
import { MockResource, MockResourceConfig } from '../mocks/resource';
1010

11+
vi.mock('../../../src/utils/shell.js', async (importOriginal) => {
12+
const actual = await importOriginal<typeof import('../../../src/utils/shell.js')>();
13+
return {
14+
...actual,
15+
ShellUtils: {
16+
...actual.ShellUtils,
17+
validateShell: vi.fn(async () => {}),
18+
},
19+
}
20+
})
21+
1122
vi.mock('../mocks/get-mock-resources.js', async () => {
1223
return {
1324
getMockResources: () => ([

0 commit comments

Comments
 (0)