Skip to content

Commit 032e46b

Browse files
authored
Merge pull request #69 from oslabs-beta/stephany/jest-2
feat: Jest example with createRun
2 parents 42f30c7 + c4a5768 commit 032e46b

File tree

8 files changed

+5508
-1903
lines changed

8 files changed

+5508
-1903
lines changed

mlflow/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default tseslint.config(
77
eslint.configs.recommended,
88
...tseslint.configs.recommended,
99
{
10-
ignores: ['docs', 'lib/**'],
10+
ignores: ['docs', 'lib/**', 'examples'],
1111
},
1212
{
1313
rules: {

mlflow/jest.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { Config } from '@jest/types';
2+
3+
const config: Config.InitialOptions = {
4+
preset: 'ts-jest',
5+
testEnvironment: 'node',
6+
transform: {
7+
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.json' }],
8+
},
9+
roots: ['<rootDir>/src', '<rootDir>/tests/'],
10+
moduleNameMapper: { '^@utils/(.*)$': '<rootDir>/src/utils/$1' },
11+
moduleFileExtensions: ['ts', 'js', 'json'],
12+
moduleDirectories: ['node_modules', 'src'],
13+
};
14+
15+
export default config;

0 commit comments

Comments
 (0)