fix errors

This commit is contained in:
Simon Larsen 2022-05-02 20:39:10 +01:00
parent b64febb5d0
commit f81d504ebd
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
6 changed files with 6856 additions and 5 deletions

View File

@ -21,7 +21,7 @@ export default class Email extends DatabaseProperty {
this.email = email;
}
public toString(): string {
public override toString(): string {
return this.email;
}
}

View File

@ -0,0 +1,3 @@
describe('Slug.getSlug()', () => {
});

View File

@ -0,0 +1,26 @@
{
"preset": "ts-jest",
"verbose": true,
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.json",
"babelConfig": false
}
},
"moduleFileExtensions": ["ts", "js", "json"],
"transform": {
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"collectCoverage": true,
"coverageReporters": ["text"],
"collectCoverageFrom": ["./**/*.(tsx||ts)"],
"coverageThreshold": {
"global": {
"lines": 0,
"functions": 0,
"branches": 0,
"statements": 0
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"main": "index.ts",
"scripts": {
"compile": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest"
},
"author": "",
"license": "MIT",
@ -32,7 +32,10 @@
"devDependencies": {
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/jest": "^27.4.1",
"@types/jsonwebtoken": "^8.5.8",
"@types/node": "^17.0.22"
"@types/node": "^17.0.22",
"jest": "^27.5.1",
"ts-jest": "^27.1.4"
}
}

View File

@ -33,7 +33,7 @@
"typeRoots": [
], /* Specify multiple folders that act like `./node_modules/@types`. */
"types": ["node"], /* Specify type package names to be included without being referenced in a source file. */
"types": ["node", "jest"], /* Specify type package names to be included without being referenced in a source file. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
// "resolveJsonModule": true, /* Enable importing .json files */
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */