Add tests
This commit is contained in:
parent
48b82c000c
commit
a6c2f91ab9
14
jest.config.js
Normal file
14
jest.config.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
module.exports = {
|
||||||
|
transform: {
|
||||||
|
"^.+\\.ts$": "ts-jest"
|
||||||
|
},
|
||||||
|
moduleFileExtensions: [
|
||||||
|
'js',
|
||||||
|
'ts',
|
||||||
|
'd.ts'
|
||||||
|
],
|
||||||
|
testMatch: [
|
||||||
|
'**/test/**/*.test.ts'
|
||||||
|
],
|
||||||
|
testEnvironment: 'node'
|
||||||
|
};
|
@ -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
5
test/ExampleApp.test.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
describe('Write your tests', () => {
|
||||||
|
test('Remove this when you have some tests', () => {
|
||||||
|
expect(false).toBe(true);
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user