mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Fix bug in login functionality
This commit is contained in:
parent
86a25a456a
commit
c7622bb7f3
9
Model/Tests/File.test.ts
Normal file
9
Model/Tests/File.test.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import BaseModel from 'Common/Models/BaseModel';
|
||||
import File from '../Models/File';
|
||||
|
||||
describe('File', () => {
|
||||
it('should be an instance of BaseModel', () => {
|
||||
const file: File = new File();
|
||||
expect(file).toBeInstanceOf(BaseModel);
|
||||
});
|
||||
});
|
27
Model/jest.config.json
Normal file
27
Model/jest.config.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"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": false,
|
||||
"coverageReporters": ["text", "lcov"],
|
||||
"testRegex": "./Tests/(.*).test.ts",
|
||||
"collectCoverageFrom": ["./**/*.(tsx||ts)"],
|
||||
"coverageThreshold": {
|
||||
"global": {
|
||||
"lines": 0,
|
||||
"functions": 0,
|
||||
"branches": 0,
|
||||
"statements": 0
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user