Skip to content

Commit 55b7865

Browse files
committed
test: @putout/processor-filesystem: flacky
1 parent e720739 commit 55b7865

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/processor-filesystem/lib/filesystem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const branch = (rawSource) => {
2323
};
2424

2525
export const merge = (rawSource, list) => {
26-
filesystem.deinit(filesystemCLI);
26+
filesystem.deinit();
2727

2828
const [source] = list.filter(isFilesystem);
2929

packages/processor-filesystem/test/filesystem.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {fileURLToPath} from 'node:url';
44
import {test} from 'supertape';
55
import montag from 'montag';
66
import {fromJS, __filesystem} from '@putout/operator-json';
7+
import filesystem from '@putout/operator-filesystem';
78
import {merge, branch} from '../lib/filesystem.js';
89

910
const __filename = fileURLToPath(import.meta.url);
@@ -40,6 +41,8 @@ test('putout: processor: filesystem: branch', (t) => {
4041
}, null, 4);
4142

4243
const result = branch(rawSource);
44+
filesystem.deinit();
45+
4346
const source = montag`
4447
__putout_processor_filesystem({
4548
"filename": "/",
@@ -123,6 +126,8 @@ test('putout: processor: filesystem: branch: big', (t) => {
123126

124127
const [{source}] = branch(rawSource);
125128

129+
filesystem.deinit();
130+
126131
const result = parse(fromJS(
127132
source,
128133
__filesystem,

0 commit comments

Comments
 (0)