mirror of
https://github.com/softprops/action-gh-release.git
synced 2024-11-23 09:12:55 +03:00
20adb4259c
* refactor: write jest config in ts Signed-off-by: Rui Chen <rui@chenrui.dev> * chore: exclude jest.config.ts in tsconfig Signed-off-by: Rui Chen <rui@chenrui.dev> * chore: run build Signed-off-by: Rui Chen <rui@chenrui.dev> --------- Signed-off-by: Rui Chen <rui@chenrui.dev>
17 lines
378 B
TypeScript
17 lines
378 B
TypeScript
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;
|