diff --git a/client/jest.config.cjs b/client/jest.config.cjs index 63912f7e04..d6046e998e 100644 --- a/client/jest.config.cjs +++ b/client/jest.config.cjs @@ -1,5 +1,5 @@ module.exports = { - roots: ['/src'], + roots: ['/src', '/../terms'], testEnvironment: 'jsdom', testEnvironmentOptions: { url: 'http://localhost:3080', @@ -29,6 +29,7 @@ module.exports = { '^test/(.*)$': '/test/$1', '^~/(.*)$': '/src/$1', '^librechat-data-provider/react-query$': '/../node_modules/librechat-data-provider/src/react-query', + '^.+\\.md\\?raw$': '/test/rawFileMock.js', }, restoreMocks: true, testResultsProcessor: 'jest-junit', diff --git a/client/test/rawFileMock.js b/client/test/rawFileMock.js new file mode 100644 index 0000000000..74a2ed1a8d --- /dev/null +++ b/client/test/rawFileMock.js @@ -0,0 +1 @@ +module.exports = 'MOCK_MARKDOWN_CONTENT';