Add tests

This commit is contained in:
Alice Gaudon 2020-04-23 18:11:29 +02:00
parent 48b82c000c
commit a6c2f91ab9
3 changed files with 20 additions and 0 deletions

14
jest.config.js Normal file
View File

@ -0,0 +1,14 @@
module.exports = {
transform: {
"^.+\\.ts$": "ts-jest"
},
moduleFileExtensions: [
'js',
'ts',
'd.ts'
],
testMatch: [
'**/test/**/*.test.ts'
],
testEnvironment: 'node'
};

View File

@ -18,6 +18,7 @@
"@babel/preset-env": "^7.9.5", "@babel/preset-env": "^7.9.5",
"@types/config": "^0.0.36", "@types/config": "^0.0.36",
"@types/express": "^4.17.6", "@types/express": "^4.17.6",
"@types/jest": "^25.2.1",
"@types/node": "^13.13.2", "@types/node": "^13.13.2",
"babel-loader": "^8.1.0", "babel-loader": "^8.1.0",
"concurrently": "^5.1.0", "concurrently": "^5.1.0",

5
test/ExampleApp.test.ts Normal file
View File

@ -0,0 +1,5 @@
describe('Write your tests', () => {
test('Remove this when you have some tests', () => {
expect(false).toBe(true);
});
});