Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaiwat10 committed Dec 26, 2024
1 parent a1dac4b commit 4ce66e6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/fuels/src/cli/commands/dev/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ describe('dev', () => {
const { log } = mockLogger();
const { build, deploy } = mockAll();

await workspaceFileChanged({ config: fuelsConfig, watchHandlers: [] })('event', 'some/path');
await workspaceFileChanged({ config: fuelsConfig, watchHandlers: [], filesBeingProcsesed: [] })(
'event',
'some/path'
);

expect(log).toHaveBeenCalledTimes(1);
expect(build).toHaveBeenCalledTimes(1);
Expand Down Expand Up @@ -127,7 +130,10 @@ describe('dev', () => {
const close = vi.fn();
const watchHandlers = [{ close }, { close }] as unknown as FSWatcher[];

await configFileChanged({ config, fuelCore, watchHandlers })('event', 'some/path');
await configFileChanged({ config, fuelCore, watchHandlers, filesBeingProcsesed: [] })(
'event',
'some/path'
);

// configFileChanged() internals
expect(log).toHaveBeenCalledTimes(1);
Expand Down Expand Up @@ -163,7 +169,10 @@ describe('dev', () => {
const close = vi.fn();
const watchHandlers = [{ close }, { close }] as unknown as FSWatcher[];

await configFileChanged({ config, fuelCore, watchHandlers })('event', 'some/path');
await configFileChanged({ config, fuelCore, watchHandlers, filesBeingProcsesed: [] })(
'event',
'some/path'
);

// configFileChanged() internals
expect(log).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 4ce66e6

Please sign in to comment.