mirror of
https://gitea.com/actions/stale.git
synced 2024-11-23 09:54:37 +08:00
5fbbfba142
* refactor(logs): replace chalk by ansi-styles * test(logs): fix the failing tests due to ansi styles I was not able to disable or mock ansi-styles so instead I found a way to make the tests pass it's not perfect but it's still nice because the logs will keep their trustful colour when running through the tests * refactor(logs): simplify the syntax to colour the logs * chore(rebase): update files due to rebase * refactor(logger): reduce code duplication
12 lines
253 B
JavaScript
12 lines
253 B
JavaScript
module.exports = {
|
|
clearMocks: true,
|
|
moduleFileExtensions: ['js', 'ts'],
|
|
testEnvironment: 'node',
|
|
testMatch: ['**/*.test.ts', '**/*.spec.ts'],
|
|
testRunner: 'jest-circus/runner',
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest'
|
|
},
|
|
verbose: true
|
|
};
|