mirror of
https://github.com/mshick/add-pr-comment.git
synced 2026-01-02 06:49:48 +11:00
build(typescript): refactoring project with typescript and test setup
This commit is contained in:
parent
026d9b8889
commit
fe6d191bcd
13 changed files with 4956 additions and 25713 deletions
18
jest.config.js
Normal file
18
jest.config.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
const processStdoutWrite = process.stdout.write.bind(process.stdout)
|
||||
process.stdout.write = (str, encoding, cb) => {
|
||||
if (!str.match(/^##/)) {
|
||||
return processStdoutWrite(str, encoding, cb)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
clearMocks: true,
|
||||
moduleFileExtensions: ['js', 'ts'],
|
||||
testEnvironment: 'node',
|
||||
testMatch: ['**/*.test.ts'],
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest',
|
||||
},
|
||||
verbose: true,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue