Skip to content

Commit 77d6397

Browse files
committed
fix: Fixed bug with memfs volume not resetting between tests
1 parent 996a95d commit 77d6397

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/orchestrator/import/import.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { MockResource, MockResourceConfig } from '../mocks/resource.js';
88
import { ResourceSettings } from 'codify-plugin-lib';
99
import { ResourceConfig } from '../../../src/entities/resource-config.js';
1010
import { FileModificationResult } from '../../../src/utils/file-modification-calculator.js';
11-
import { fs } from 'memfs';
11+
import { fs, vol } from 'memfs';
1212

1313
vi.mock('../mocks/get-mock-resources.js', async () => {
1414
return {
@@ -684,6 +684,7 @@ describe('Import orchestrator tests', () => {
684684

685685
afterEach(() => {
686686
vi.resetAllMocks();
687+
vol.reset();
687688
MockOs.reset();
688689
})
689690

0 commit comments

Comments
 (0)