test: Disable ts check for test files
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// @ts-nocheck
|
||||
import request from 'supertest';
|
||||
import app from '../../app';
|
||||
import * as license from '../../helpers/license.ee';
|
||||
@@ -22,7 +23,7 @@ describe('graphQL getAutomatischInfo query', () => {
|
||||
beforeEach(async () => {
|
||||
jest.spyOn(license, 'getLicense').mockResolvedValue(false);
|
||||
|
||||
jest.replaceProperty(appConfig, 'isCloud', false)
|
||||
jest.replaceProperty(appConfig, 'isCloud', false);
|
||||
});
|
||||
|
||||
it('should return empty license data', async () => {
|
||||
@@ -36,9 +37,9 @@ describe('graphQL getAutomatischInfo query', () => {
|
||||
getAutomatischInfo: {
|
||||
isCloud: false,
|
||||
license: {
|
||||
id: null as string,
|
||||
name: null as string,
|
||||
expireAt: null as string,
|
||||
id: null,
|
||||
name: null,
|
||||
expireAt: null,
|
||||
verified: false,
|
||||
},
|
||||
},
|
||||
@@ -63,7 +64,7 @@ describe('graphQL getAutomatischInfo query', () => {
|
||||
|
||||
describe('and with cloud flag enabled', () => {
|
||||
beforeEach(async () => {
|
||||
jest.replaceProperty(appConfig, 'isCloud', true)
|
||||
jest.replaceProperty(appConfig, 'isCloud', true);
|
||||
});
|
||||
|
||||
it('should return all license data', async () => {
|
||||
@@ -92,7 +93,7 @@ describe('graphQL getAutomatischInfo query', () => {
|
||||
|
||||
describe('and with cloud flag disabled', () => {
|
||||
beforeEach(async () => {
|
||||
jest.replaceProperty(appConfig, 'isCloud', false)
|
||||
jest.replaceProperty(appConfig, 'isCloud', false);
|
||||
});
|
||||
|
||||
it('should return all license data', async () => {
|
||||
|
Reference in New Issue
Block a user