Files
litellm/tests/proxy_admin_ui_tests/ui_unit_tests/jest.config.js
T
Ishaan Jaff 4005a51db2 (UI) fix adding Vertex Models (#8129)
* 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
2025-01-30 21:11:08 -08:00

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'
}
}