build(typescript): refactoring project with typescript and test setup

This commit is contained in:
Michael Shick 2020-05-21 13:17:40 -04:00
parent 026d9b8889
commit fe6d191bcd
No known key found for this signature in database
GPG key ID: ADF5BC9704BB4A61
13 changed files with 4956 additions and 25713 deletions

18
jest.config.js Normal file
View 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,
}