Browse Source

Add tests

master
Alice Gaudon 1 year ago
parent
commit
a6c2f91ab9
  1. 14
      jest.config.js
  2. 1
      package.json
  3. 5
      test/ExampleApp.test.ts

14
jest.config.js

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

1
package.json

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

5
test/ExampleApp.test.ts

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