mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-05 01:58:50 +01:00
🔧 test: Update Jest configuration to include additional test roots and add markdown file mock
This commit is contained in:
parent
b170a57482
commit
6b60ee4df8
2 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
module.exports = {
|
||||
roots: ['<rootDir>/src'],
|
||||
roots: ['<rootDir>/src', '<rootDir>/../terms'],
|
||||
testEnvironment: 'jsdom',
|
||||
testEnvironmentOptions: {
|
||||
url: 'http://localhost:3080',
|
||||
|
|
@ -29,6 +29,7 @@ module.exports = {
|
|||
'^test/(.*)$': '<rootDir>/test/$1',
|
||||
'^~/(.*)$': '<rootDir>/src/$1',
|
||||
'^librechat-data-provider/react-query$': '<rootDir>/../node_modules/librechat-data-provider/src/react-query',
|
||||
'^.+\\.md\\?raw$': '<rootDir>/test/rawFileMock.js',
|
||||
},
|
||||
restoreMocks: true,
|
||||
testResultsProcessor: 'jest-junit',
|
||||
|
|
|
|||
1
client/test/rawFileMock.js
Normal file
1
client/test/rawFileMock.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
module.exports = 'MOCK_MARKDOWN_CONTENT';
|
||||
Loading…
Add table
Add a link
Reference in a new issue