Skip to content

Commit

Permalink
Merge pull request #82 from danielo515/feat-valibot
Browse files Browse the repository at this point in the history
migrate to validation library
  • Loading branch information
danielo515 authored Oct 20, 2023
2 parents 3d89d0f + 54e9eaf commit 60dafb7
Show file tree
Hide file tree
Showing 7 changed files with 4,732 additions and 1,264 deletions.
21 changes: 21 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { JestConfigWithTsJest } from 'ts-jest'

const jestConfig: JestConfigWithTsJest = {
// [...]
preset: 'ts-jest/presets/default-esm', // or other ESM presets
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
'^.+\\.tsx?$': [
'ts-jest',
{
useESM: true,
},
],
},
}

export default jestConfig
Loading

0 comments on commit 60dafb7

Please sign in to comment.