diff --git a/packages/cli/src/commands/testHandler.js b/packages/cli/src/commands/testHandler.js index 41947eab786f..3cf1068c32ee 100644 --- a/packages/cli/src/commands/testHandler.js +++ b/packages/cli/src/commands/testHandler.js @@ -71,7 +71,14 @@ export const handler = async ({ const rwjsPaths = getPaths() const forwardJestFlags = Object.keys(others).flatMap((flagName) => { if ( - ['watch', 'collect-coverage', 'db-push', '$0', '_'].includes(flagName) + [ + 'watch', + 'collect-coverage', + 'db-push', + 'loadEnvFiles', + '$0', + '_', + ].includes(flagName) ) { // filter out flags meant for the rw test command only return []