diff --git a/alfa-client/apps/alfa-e2e/src/support/cypress-tasks.ts b/alfa-client/apps/alfa-e2e/src/support/cypress-tasks.ts
index 83a947977827f39716626df5594642ede0dbabab..1e965a342e415f6825afaa78d27a684a8a125bfa 100644
--- a/alfa-client/apps/alfa-e2e/src/support/cypress-tasks.ts
+++ b/alfa-client/apps/alfa-e2e/src/support/cypress-tasks.ts
@@ -1,5 +1,5 @@
+import { readdir, remove } from 'fs-extra';
 import { Db, Long, MongoClient, ObjectId } from 'mongodb';
-const fsExtra = require('fs-extra');
 
 const Binary = require('mongodb').Binary;
 
@@ -317,8 +317,7 @@ function dropCollections(databaseUrl, databaseName, collections) {
 }
 
 function countFiles(folderName) {
-  return fsExtra
-    .readdir(folderName)
+  return readdir(folderName)
     .then((files) => files.length)
     .catch((err) => {
       throw new Error(`Counting files failed: ${err.message}`);
@@ -326,8 +325,7 @@ function countFiles(folderName) {
 }
 
 function deleteFolder(folderName: string): void {
-  return fsExtra
-    .remove(folderName)
+  return remove(folderName)
     .then(() => {
       return null;
     })