diff --git a/packages/cli/src/commands/generate/dbAuth/__tests__/dbAuth.test.js b/packages/cli/src/commands/generate/dbAuth/__tests__/dbAuth.test.js index 7945bad30ea1..21604e70b8d8 100644 --- a/packages/cli/src/commands/generate/dbAuth/__tests__/dbAuth.test.js +++ b/packages/cli/src/commands/generate/dbAuth/__tests__/dbAuth.test.js @@ -7,7 +7,7 @@ import path from 'path' // Load mocks import '../../../../lib/test' -const realfs = await vi.importActual('fs-extra') +const actualFs = await vi.importActual('fs-extra') import Enquirer from 'enquirer' import fs from 'fs-extra' import { vol } from 'memfs' @@ -27,14 +27,14 @@ const dbAuthTemplateFiles = [ 'signup.tsx.template', ] dbAuthTemplateFiles.forEach((templateFilename) => { - mockFiles[path.join(__dirname, `../templates/${templateFilename}`)] = realfs + mockFiles[path.join(__dirname, `../templates/${templateFilename}`)] = actualFs .readFileSync(path.join(__dirname, `../templates/${templateFilename}`)) .toString() }) mockFiles[ path.join(__dirname, `../../scaffold/templates/assets/scaffold.css.template`) -] = realfs +] = actualFs .readFileSync( path.join( __dirname, @@ -43,7 +43,7 @@ mockFiles[ ) .toString() -mockFiles[getPaths().web.routes] = realfs +mockFiles[getPaths().web.routes] = actualFs .readFileSync( path.join( __dirname, @@ -52,7 +52,7 @@ mockFiles[getPaths().web.routes] = realfs ) .toString() -mockFiles[getPaths().web.app] = realfs +mockFiles[getPaths().web.app] = actualFs .readFileSync( path.join( __dirname,