mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-17 20:48:32 +00:00
4005a51db2
* fix handleSubmit * update handleAddModelSubmit * add jest testing for ui * add step for running ui unit tests * add validate json step to add model * ui jest testing fixes * update package lock * ci/cd run again * fix antd import * run jest tests first * fix antd install * fix ui unit tests * fix unit test ui
18 lines
567 B
JavaScript
18 lines
567 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'jsdom',
|
|
moduleNameMapper: {
|
|
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
|
'\\.(jpg|jpeg|png|gif|webp|svg)$': '<rootDir>/__mocks__/fileMock.js'
|
|
},
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
|
testMatch: [
|
|
'<rootDir>/**/*.test.tsx',
|
|
'<rootDir>/**/*_test.tsx' // Added this to match your file naming
|
|
],
|
|
moduleDirectories: ['node_modules'],
|
|
testPathIgnorePatterns: ['/node_modules/'],
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': 'ts-jest'
|
|
}
|
|
} |