mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-11 19:04:20 +00:00
refactor: write jest config in ts
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
parent
f808f15ba8
commit
6fd2b4ea22
4 changed files with 173 additions and 17 deletions
16
jest.config.ts
Normal file
16
jest.config.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import type { JestConfigWithTsJest } from 'ts-jest';
|
||||
|
||||
const config: JestConfigWithTsJest = {
|
||||
preset: 'ts-jest/presets/default-esm',
|
||||
clearMocks: true,
|
||||
moduleFileExtensions: ['js', 'ts'],
|
||||
testEnvironment: 'node',
|
||||
testMatch: ['**/*.test.ts'],
|
||||
testRunner: 'jest-circus/runner',
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest',
|
||||
},
|
||||
verbose: true,
|
||||
};
|
||||
|
||||
export default config;
|
Loading…
Add table
Add a link
Reference in a new issue