diff --git a/packages/server/src/utilities/fileSystem/index.js b/packages/server/src/utilities/fileSystem/index.js index 088e992958..b19d7551e4 100644 --- a/packages/server/src/utilities/fileSystem/index.js +++ b/packages/server/src/utilities/fileSystem/index.js @@ -178,6 +178,7 @@ exports.getComponentLibraryManifest = async (appId, library) => { // when testing in cypress and so on we need to get the package // as the environment may not be fully fleshed out for dev or prod if (env.isTest()) { + library = library.replace("standard-components", "client") const lib = library.split("/")[1] const path = require.resolve(library).split(lib)[0] return require(join(path, lib, filename))