This commit is contained in:
Matthew O'Connor 2020-10-22 21:54:08 +01:00
parent 9ac06b5238
commit b7fcb0ae42
3 changed files with 26 additions and 4 deletions

View File

@ -1,6 +1,6 @@
const {join, normalize} = require("path");
const tsConfig = normalize(join(__dirname, "tsconfig.build.json"))
const tsConfig = normalize(join(__dirname, "tsconfig.test.json"))
module.exports = {
displayName: { name: "root" },

View File

@ -57,13 +57,13 @@ describe('api', () => {
});
it('should update isActive getter', () => {
expect(api.isVisible).toBeFalsy();
api._onDidVisibilityChange.fire({ isVisible: true });
expect(api.isVisible).toBeTruthy();
api._onDidVisibilityChange.fire({ isVisible: false });
expect(api.isVisible).toBeFalsy();
api._onDidVisibilityChange.fire({ isVisible: true });
expect(api.isVisible).toBeTruthy();
});
it('should update width and height getter', () => {

22
tsconfig.test.json Normal file
View File

@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2019",
"sourceMap": true,
"declaration": true,
"jsx": "react",
"noImplicitReturns": true,
"noImplicitAny": true,
"allowUnreachableCode": false,
"forceConsistentCasingInFileNames": true,
// "strict": true,
"strictBindCallApply": true, // pass
"alwaysStrict": true, // pass
"noImplicitThis": true, // pass
"strictFunctionTypes": true, // pass
"strictNullChecks": false,
"strictPropertyInitialization": false,
},
"exclude": ["node_modules", "dist"]
}