enable jest

This commit is contained in:
Thomas Ruoff
2020-11-07 00:38:03 +01:00
parent e80c095770
commit c223b05011
3 changed files with 21 additions and 5 deletions

6
babel.config.js Normal file
View File

@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};

17
package-lock.json generated
View File

@@ -1439,12 +1439,12 @@
}
},
"@babel/preset-typescript": {
"version": "7.10.4",
"resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.10.4.tgz",
"integrity": "sha512-SdYnvGPv+bLlwkF2VkJnaX/ni1sMNetcGI1+nThF1gyv6Ph8Qucc4ZZAjM5yZcE/AKRXIOTZz7eSRDWOEjPyRQ==",
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.12.1.tgz",
"integrity": "sha512-hNK/DhmoJPsksdHuI/RVrcEws7GN5eamhi28JkO52MqIxU8Z0QpmiSOQxZHWOHV7I3P4UjHV97ay4TcamMA6Kw==",
"requires": {
"@babel/helper-plugin-utils": "^7.10.4",
"@babel/plugin-transform-typescript": "^7.10.4"
"@babel/plugin-transform-typescript": "^7.12.1"
}
},
"@babel/runtime": {
@@ -8946,6 +8946,15 @@
"source-map": "^0.5.0"
}
},
"@babel/preset-typescript": {
"version": "7.10.4",
"resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.10.4.tgz",
"integrity": "sha512-SdYnvGPv+bLlwkF2VkJnaX/ni1sMNetcGI1+nThF1gyv6Ph8Qucc4ZZAjM5yZcE/AKRXIOTZz7eSRDWOEjPyRQ==",
"requires": {
"@babel/helper-plugin-utils": "^7.10.4",
"@babel/plugin-transform-typescript": "^7.10.4"
}
},
"@babel/types": {
"version": "7.11.5",
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.11.5.tgz",

View File

@@ -7,9 +7,10 @@
"build": "next build",
"start": "next start",
"test:watch": "jest --watch",
"test:ci": "jest"
"test": "jest"
},
"dependencies": {
"@babel/preset-typescript": "^7.12.1",
"date-fns": "^2.16.1",
"ics": "^2.26.1",
"mongoose": "^5.10.13",