Skip to content

Commit

Permalink
Upgrade dependencies (epiphone#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
epiphone authored Jan 7, 2023
1 parent 59b3799 commit 5b2d059
Show file tree
Hide file tree
Showing 6 changed files with 3,141 additions and 6,636 deletions.
4 changes: 2 additions & 2 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ describe('classValidatorConverter', () => {
validationTypeOptions: {},
}

const storage = ({
const storage = {
constraintMetadatas: new Map(),
validationMetadatas: new Map([[User, [customMetadata]]]),
getTargetValidatorConstraints: () => [],
} as unknown) as MetadataStorage
} as unknown as MetadataStorage

const schemas = validationMetadatasToSchemas({
classValidatorMetadataStorage: storage,
Expand Down
9 changes: 2 additions & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
module.exports = {
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest'
'^.+\\.tsx?$': ['ts-jest', { babelConfig: false }],
},
testRegex: '(/__tests__/.*|\\.(test))\\.(ts|js)$',
globals: {
'ts-jest': {
babelConfig: false
}
},
moduleDirectories: ['node_modules', 'src'],
moduleFileExtensions: ['ts', 'js', 'json'],
roots: ['<rootDir>/__tests__'],
testPathIgnorePatterns: ['/node_modules/'],
coverageDirectory: 'coverage',
collectCoverageFrom: ['src/**/*.{ts,tsx,js,jsx}', '!src/**/*.d.ts']
collectCoverageFrom: ['src/**/*.{ts,tsx,js,jsx}', '!src/**/*.d.ts'],
}
Loading

0 comments on commit 5b2d059

Please sign in to comment.