Skip to content

Commit

Permalink
chore: bump to prettier 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcodez committed Feb 1, 2024
1 parent e1777ed commit db8d95a
Show file tree
Hide file tree
Showing 13 changed files with 220 additions and 949 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actionsx/prettier@v2
- uses: actionsx/prettier@v3
with:
args: --check "{src,test}/**/*.ts"

Expand Down
22 changes: 22 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/** @type {import('jest').Config} */
const config = {
preset: 'ts-jest/presets/default-esm',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
useESM: true,
tsconfig: './tsconfig.jest.json',
},
],
},
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
// Jest snapshots are incompatible with prettier 3
prettierPath: require.resolve('prettier-2'),
}

module.exports = config
Loading

0 comments on commit db8d95a

Please sign in to comment.