diff --git a/Model/Tests/File.test.ts b/Model/Tests/File.test.ts new file mode 100644 index 0000000000..ed637d96f4 --- /dev/null +++ b/Model/Tests/File.test.ts @@ -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); + }); +}); diff --git a/Model/jest.config.json b/Model/jest.config.json new file mode 100644 index 0000000000..7c066d401e --- /dev/null +++ b/Model/jest.config.json @@ -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 + } + } +}