-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[code-infra] Replace fs-extra
with node:fs
calls
#19148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[code-infra] Replace fs-extra
with node:fs
calls
#19148
Conversation
@@ -189,7 +188,6 @@ async function main() { | |||
it('should position the headers matching the columns', async () => { | |||
const route = '/docs-data-grid-virtualization/ColumnVirtualizationGrid'; | |||
const screenshotPath = path.resolve(screenshotDir, `.${route}ScrollLeft400px.png`); | |||
await fse.ensureDir(path.dirname(screenshotPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emptyDir
already ensures screenshotDir
is available, so I don't think we need to check again.
It's true that something might have deleted it, but since these are tests they will fail and I suppose that's fine.
fs-extra
with node:fs
calls
Deploy preview: https://deploy-preview-19148--material-ui-x.netlify.app/ Bundle size report
|
fs-extra
with node:fs
callsfs-extra
with node:fs
calls
Replace
fs-extra
withnode:fs
calls.We still depend on
fs-extra
transitively since@mui/monorepo
depends on it.