Skip to content

node 20: mock-fs breaks #834

Closed
Closed
@josephjclark

Description

@josephjclark

When updating to node 20, mock-fs breaks.

We use mock-fs extensively in unit tests to load fake adaptor files and such. Bumping the mock-fs version helps, but we also have a problem dynamically importing modues.

Basically mock-fs will only mock the filesystem for node:fs. When using import() (as we do in the runtime to load adaptors), the file system isn't mocked out at all.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions