add configs

This commit is contained in:
Felicio Mununga 2022-05-31 13:14:12 +02:00
parent a52e0306ce
commit c1d611827f
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
5 changed files with 24 additions and 1 deletions

10
jest.config.base.js Normal file
View File

@ -0,0 +1,10 @@
module.exports = {
testEnvironment: 'node',
transform: {
'\\.[jt]sx?$': [
'babel-jest',
{ configFile: require.resolve('./babel.config') },
],
},
watchPathIgnorePatterns: ['\\/node_modules\\/'],
}

3
jest.config.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = {
projects: ['packages/status-js'],
}

View File

@ -0,0 +1,4 @@
module.exports = {
...require('../../jest.config.base'),
displayName: 'core',
}

View File

@ -7,6 +7,7 @@
"baseUrl": ".",
"paths": {
"~/*": ["./*"]
}
},
"rootDir": "."
}
}

5
tsconfig.json Normal file
View File

@ -0,0 +1,5 @@
{
"files": [],
"exclude": ["node_modules"],
"references": [{ "path": "packages/status-js" }]
}